File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131
3232 - name : Extract Version Number
3333 id : extract_version
34- run : echo "::set-output name= version:: ${GITHUB_REF##*/}"
34+ run : echo "version= ${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
3535
3636 - name : Add MSBuild to PATH
3737 uses : microsoft/setup-msbuild@v1.0.2
4545 # Add additional options to the MSBuild command line here (like platform or verbosity level).
4646 # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
4747 run : msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
48+
49+ - name : Upload Build Artifact
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : PgNinja-${{ steps.extract_version.outputs.version }}
53+ path : |
54+ **\x64\${{env.BUILD_CONFIGURATION}}\*.exe
55+
56+ - name : Build the Inno Setup Installer
57+ uses : Minionguyjpro/Inno-Setup-Action@v1.2.2
58+ with :
59+ path : ' PgNinjaSetup.iss'
60+ options : /O+
61+
62+ - name : Upload Installer Artifact
63+ uses : actions/upload-artifact@v4
64+ with :
65+ name : PgNinja-Installer-${{ steps.extract_version.outputs.version }}
66+ path : Output/*.exe
67+
Original file line number Diff line number Diff line change 1+ ; Inno Setup Script
2+ [Setup]
3+ AppName = PgNinja
4+ AppVersion = 1.0 .0
5+ DefaultDirName = {pf} \PgNinja
6+ DefaultGroupName = PgNinja
7+ UninstallDisplayIcon = {app} \PgNinja.exe
8+ OutputDir = .\Output
9+ OutputBaseFilename = PgNinjaSetup
10+ Compression = lzma
11+ SolidCompression = yes
12+
13+ [Files]
14+ Source : " D:\a\PgNinja\PgNinja\x64\Release\PgNinja.exe" ; DestDir : " {app} " ; Flags : ignoreversion
15+
16+ [Icons]
17+ Name : " {group} \PgNinja" ; Filename : " {app} \PgNinja.exe"
18+ Name : " {userstartup}\PgNinja" ; Filename : " {app} \PgNinja.exe" ; Tasks: autostart
19+
20+ [Tasks]
21+ Name : " autostart" ; Description : " Launch PgNinja at Windows startup" ; GroupDescription: " Additional options:"
22+
23+ [Registry]
24+ Root : HKCU; Subkey : " Software\Microsoft\Windows\CurrentVersion\Run" ; \
25+ ValueName : " PgNinja" ; ValueType : string ; ValueData : " " " {app} \PgNinja.exe" " " ; \
26+ Flags : uninsdeletevalue ; Tasks: autostart
27+
28+ [Run]
29+ Filename : " {app} \PgNinja.exe" ; Description : " Launch PgNinja" ; Flags : nowait postinstall skipifsilent
You can’t perform that action at this time.
0 commit comments