Skip to content

Commit

Permalink
Update workflow for inno installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Sep 26, 2024
1 parent 7ba0d34 commit 1a48032
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/WinX64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,9 @@ jobs:
# Step 9: Generate the Inno Setup Installer
- name: Generate Inno Setup variables
run: |
$appVersion = "${{steps.get-version.outputs.assembly-version}}"
$outputDir = "${{ steps.paths.outputs.output_dir }}"
$setupOutputDir = "${{ steps.paths.outputs.output_dir }}\install"
$appIconPath = "${{ github.workspace }}\src\PicView.Avalonia.Win32\icon.ico"
$licenseFilePath = "${{ github.workspace }}\src\PicView.Core\Licenses\LICENSE.txt"
# Create output directory for installer
New-Item -Path $setupOutputDir -ItemType Directory -Force
New-Item -Path ${{ steps.paths.outputs.output_dir }}\install -ItemType Directory -Force
shell: pwsh

Expand Down
3 changes: 2 additions & 1 deletion Build/install.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#define MyAppName "PicView"
#define MyAppVersion "{#MyAppVersion}"
#define MyAppVersionInfo "{#MyAppVersionInfo}"
#define MyAppPublisher "Ruben2776"
#define MyAppExeName "{#MyAppExeName}"
#define AppIcon "{#MyAppIcon}"
Expand All @@ -26,7 +27,7 @@ WizardStyle=modern
UninstallDisplayIcon={app}\{#MyAppExeName}
UninstallDisplayName={#MyAppName}
ChangesAssociations=yes
VersionInfoVersion={#MyAppVersion}
VersionInfoVersion={#MyAppVersionInfo}

[Files]
Source: "{#MyAppOutputDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Expand Down
4 changes: 2 additions & 2 deletions src/PicView.Avalonia.Win32/PicView.Avalonia.Win32.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<AssemblyName>PicView</AssemblyName>
<StartupObject>PicView.Avalonia.Win32.Program</StartupObject>
<LangVersion>preview</LangVersion>
<AssemblyVersion>3.0.0.3</AssemblyVersion>
<FileVersion>3.0.0.3</FileVersion>
<AssemblyVersion>3.0.400</AssemblyVersion>
<FileVersion>3.0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
Expand Down

0 comments on commit 1a48032

Please sign in to comment.