Skip to content

Commit

Permalink
build ted.msi in make.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
pommicket committed Sep 14, 2023
1 parent 52015e0 commit 42f3f80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,15 @@ sudo apt install clang libsdl2-dev cmake imagemagick
Then run `make -j8 release` to build or `sudo make install -j8` to build and install.
You can also run `make -j8 ted.deb` to build the .deb installer.

On Windows (64-bit), you will need to install Microsoft Visual Studio, then find and add vcvarsall.bat to your PATH.
On Windows, install Microsoft Visual Studio 2022, then find and add vcvarsall.bat to your PATH
(most likely lives at `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build`).
Also, install the [Visual Studio Installer Projects extension](https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects)
(needed to build the .msi installer).
Next you will need the SDL2 VC development libraries: https://www.libsdl.org/download-2.0.php
Extract the zip, copy SDL2-2.x.y into the ted directory, and rename it to SDL2. Also copy SDL2\\lib\\x64\\SDL2.dll
to the ted directory.
Then run `make.bat release`.

To build the .msi file, you will need Visual Studio 2022, as well as the
[Visual Studio Installer Projects extension](https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects).
Then, open windows\_installer\\ted.sln, and build.

## Version history

<table>
Expand Down
1 change: 0 additions & 1 deletion development.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,4 @@ When releasing a new version of `ted`:
- Run `make ted.deb` on Debian/Ubuntu.
- Run `make.bat release` on Windows.
- Run `python3 update-windows-installer.py`.
- Build `ted.msi`.
- Create a new release on GitHub with `ted.deb` and `ted.msi`.
6 changes: 5 additions & 1 deletion make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if _%1 == _ (
copy /y ted.exe ..
popd
)
if _%1 == _release cl main.c ted.res /O2 /wd4702 %C_FLAGS% /Fe:ted
if _%1 == _release (
cl main.c ted.res /O2 /wd4702 %C_FLAGS% /Fe:ted
devenv windows_installer\ted\ted.vdproj /build "Release|Default"
copy /y windows_installer\ted\Release\ted.msi
)
if _%1 == _release_with_debug_info cl main.c ted.res /DEBUG /Zi /O2 /wd4702 %C_FLAGS% /Fe:ted
if _%1 == _profile cl main.c ted.res /O2 /wd4702 /DPROFILE %C_FLAGS% /Fe:ted

0 comments on commit 42f3f80

Please sign in to comment.