Skip to content

Commit

Permalink
Extract scripts/build_installer.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jun 6, 2024
1 parent 52965b5 commit fd2798d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
21 changes: 1 addition & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@ install:
before_build:
- git submodule update --init --depth 1
build_script:
- cmake -B x86 -A Win32 -DBUILD_TESTING=OFF
- cmake --build x86 --config Release
- cmake -B x64 -A x64 -DBUILD_TESTING=OFF
- cmake --build x64 --config Release
- mkdir dist
- mkdir nsis
- copy installer\* nsis\
- copy COPYING.txt nsis\
- mkdir nsis\Dictionary
- copy x64\libchewing\data\*.dat nsis\Dictionary\
- mkdir nsis\x86
- copy x86\ChewingTextService\Release\*.dll nsis\x86\
- copy x86\libchewing\Release\*.dll nsis\x86\
- copy x86\ChewingPreferences\Release\*.exe nsis\
- copy x86\libchewing\chewing-cli.exe nsis\
- mkdir nsis\x64
- copy x64\ChewingTextService\Release\*.dll nsis\x64\
- copy x64\libchewing\Release\*.dll nsis\x64\
- cd nsis
- makensis installer.nsi
- scripts\build_installer.bat

for:
- branches:
Expand Down
22 changes: 22 additions & 0 deletions scripts/build_installer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake -B x86 -A Win32 -DBUILD_TESTING=OFF
cmake --build x86 --config Release
cmake -B x64 -A x64 -DBUILD_TESTING=OFF
cmake --build x64 --config Release
mkdir dist
mkdir nsis
copy installer\* nsis\
copy COPYING.txt nsis\
mkdir nsis\Dictionary
copy x64\libchewing\data\*.dat nsis\Dictionary\
mkdir nsis\x86
copy x86\ChewingTextService\Release\*.dll nsis\x86\
copy x86\libchewing\Release\*.dll nsis\x86\
copy x86\ChewingPreferences\Release\*.exe nsis\
copy x86\libchewing\chewing-cli.exe nsis\
mkdir nsis\x64
copy x64\ChewingTextService\Release\*.dll nsis\x64\
copy x64\libchewing\Release\*.dll nsis\x64\
pushd nsis
makensis installer.nsi
popd
copy nsis\windows-chewing-tsf.exe dist\windows-chewing-tsf-unsigned.exe

0 comments on commit fd2798d

Please sign in to comment.