Skip to content

Commit ddec3d8

Browse files
authored
Merge pull request #2 from kernel64/release/1.0.0
Release/1.0.0
2 parents d8f3b1f + d5149db commit ddec3d8

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/msbuild.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
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
@@ -45,3 +45,23 @@ jobs:
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+

PgNinjaSetup.iss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)