Skip to content

Commit 82a7b1a

Browse files
authored
Updater (#369) #minor
* Update Fronter * Build updater executable * Remove trailing spaces * Update build.yml * Fix paths * Fix path * Build Updater only in create_release * Update create_release.yml
1 parent 9b01a51 commit 82a7b1a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ jobs:
2525
- name: Build
2626
run: |
2727
cd ImperatorToCK3
28-
dotnet restore
2928
dotnet build

.github/workflows/create_release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ jobs:
3131
run: |
3232
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
3333
.\MSBuild.exe -m -p:Configuration=Release -p:Platform="x64" $Env:GITHUB_WORKSPACE\ImperatorToCK3.sln -target:Fronter
34+
- name: "Build updater executable"
35+
run: |
36+
cd Fronter/Updater
37+
pip3 install -r requirements.txt
38+
pyinstaller --onefile --icon=updater.ico updater.py
39+
mkdir ../../Release/Updater
40+
if [ "$RUNNER_OS" == "Windows" ]; then
41+
mv dist/updater.exe ../../Release/Updater/updater.exe
42+
else
43+
mv dist/updater ../../Release/Updater/updater
3444
- name: "Save commit ID"
3545
run: |
3646
cd $Env:GITHUB_WORKSPACE\ImperatorToCK3\

0 commit comments

Comments
 (0)