Skip to content

Commit

Permalink
Update installer
Browse files Browse the repository at this point in the history
  • Loading branch information
acidicMercury8 committed Jan 11, 2024
1 parent b115698 commit 9483bad
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 19 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/build-launcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
runs-on: ${{ matrix.system }}

env:
Project: src\ImeSense.Launchers.Belarus.Avalonia\ImeSense.Launchers.Belarus.Avalonia.csproj
LauncherProject: src\ImeSense.Launchers.Belarus.Avalonia\ImeSense.Launchers.Belarus.Avalonia.csproj
UpdaterProject: src\ImeSense.Launchers.Belarus.Updater\ImeSense.Launchers.Belarus.Updater.csproj

steps:
- name: Checkout
Expand All @@ -54,7 +55,7 @@ jobs:

- name: Publish launcher
run: |
dotnet publish $env:Project `
dotnet publish $env:LauncherProject `
--configuration ${{ matrix.config }} `
--runtime ${{ matrix.runtime }} `
--self-contained true `
Expand All @@ -64,21 +65,33 @@ jobs:
-p:DebugSymbols=false `
-p:DebugType=None
#- name: Publish installer
# if: matrix.runtime == 'win-x86'
# shell: cmd
# run: |
# "%ProgramFiles(x86)%\Inno Setup 6\iscc.exe" src\ImeSense.Launchers.Belarus.Setup\Setup.iss
- name: Publish updater
run: |
dotnet publish $env:UpdaterProject `
--configuration ${{ matrix.config }} `
--runtime ${{ matrix.runtime }} `
--self-contained true `
-p:PublishSingleFile=true `
-p:IncludeAllContentForSelfExtract=true `
-p:EnableCompressionInSingleFile=true `
-p:DebugSymbols=false `
-p:DebugType=None
- name: Publish installer
if: matrix.runtime == 'win-x86'
shell: cmd
run: |
"%ProgramFiles(x86)%\Inno Setup 6\iscc.exe" src\ImeSense.Launchers.Belarus.Setup\Setup.iss
- name: Upload launcher
uses: actions/upload-artifact@v3
with:
name: sblauncher-${{ matrix.runtime }}-${{ github.sha }}
path: bin/Release/${{ matrix.runtime }}/publish/

#- name: Upload installer
# uses: actions/upload-artifact@v3
# if: matrix.runtime == 'win-x86'
# with:
# name: sbinstaller-${{ github.sha }}
# path: src/ImeSense.Launchers.Belarus.Setup/Output/
- name: Upload installer
uses: actions/upload-artifact@v3
if: matrix.runtime == 'win-x86'
with:
name: sbinstaller-${{ github.sha }}
path: bin/SBLauncherInstaller.exe
14 changes: 8 additions & 6 deletions src/ImeSense.Launchers.Belarus.Setup/Setup.iss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define MyAppName "S.T.A.L.K.E.R Belarus"
#define MyAppVersion "1.0"
#define MyAppPublisher "Belarus Team"
#define MyAppURL "https://vk.com/stalker_belarus"
#define MyAppName "Belarus Launcher"
#define MyAppVersion "2.0"
#define MyAppPublisher "ImeSense"
#define MyAppURL "https://github.com/imesense"
#define MyAppExeName "SBLauncher.exe"

[Setup]
Expand All @@ -17,11 +17,12 @@ DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputBaseFilename=mysetup
OutputBaseFilename=SBLauncherInstaller
OutputDir=..\..\bin
Compression=lzma
SolidCompression=yes
WizardStyle=modern
SetupIconFile=stalker_cs.ico
SetupIconFile=logo.ico

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand All @@ -32,6 +33,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{

[Files]
Source: "..\..\bin\Release\win-x86\publish\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\..\bin\Release\win-x86\publish\SBLauncherUpdater.exe"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Expand Down

0 comments on commit 9483bad

Please sign in to comment.