-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #827 from zonble/master
Updates the build script for McBopomofo.
- Loading branch information
Showing
9 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- name: Use Node.js 21.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21.x | ||
- name: Use Install NSIS | ||
uses: repolevedavaj/install-nsis@v1.0.1 | ||
with: | ||
nsis-version: 3.08 | ||
- name: Run build.bat | ||
run: | | ||
.\build.bat | ||
- name: Build the installer | ||
run: | | ||
cmd /C "C:\Program Files (x86)\NSIS\Bin\makensis.exe" ".\installer\installer.nsi" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Installer | ||
path: installer/*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.vs | ||
build | ||
build64 | ||
node/input_methods/McBopomofo | ||
installer/*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule McBopomofoWeb
added at
3b0819
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
cmake . -Bbuild -G"Visual Studio 14 2015" | ||
cmake . -Bbuild -G "Visual Studio 17 2022" -A Win32 | ||
cmake --build build --config Release | ||
|
||
cmake . -Bbuild64 -G"Visual Studio 14 2015 Win64" | ||
cmake . -Bbuild64 -G "Visual Studio 17 2022" -A x64 | ||
cmake --build build64 --config Release --target PIMETextService | ||
|
||
echo "Start building McBopomofo" | ||
cd McBopomofoWeb | ||
cmd /C npm install | ||
cmd /C npm run build:pime | ||
cd .. | ||
|
||
echo "Copy McBopomofo to node\input_methods\McBopomofo" | ||
cmd /C rd /s /q node\input_methods\McBopomofo | ||
cmd /C mkdir node\input_methods\McBopomofo | ||
cmd /C xcopy /s /q /y /f McBopomofoWeb\output\pime node\input_methods\McBopomofo\. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters