Skip to content

Commit

Permalink
release inno no docker
Browse files Browse the repository at this point in the history
  • Loading branch information
null511 committed Oct 17, 2024
1 parent 370a495 commit 113c1d6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
if: github.event.inputs.version == ''
steps:
- name: Setup .NET 6.0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
name: Compile CLI
runs-on: ubuntu-latest
steps:
- name: Setup .NET 6.0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -38,10 +38,10 @@ jobs:
name: Compile UI
runs-on: windows-latest
steps:
- name: Setup .NET 6.0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -67,24 +67,27 @@ jobs:
name: Compile Installer
runs-on: windows-latest
steps:
- name: Setup .NET 6.0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile Binaries
run: |
dotnet publish PixelGraph.UI -c Release -r win-x64 -o publish -p:EnableWindowsTargeting=true --self-contained false
docker image pull eckertj/inno-setup
docker run --name=inno-setup --rm -v .:/app -w /app eckertj/inno-setup "iscc.exe ./Inno/setup.iss"
curl https://files.jrsoftware.org/is/6/innosetup-6.3.3.exe innosetup.exe
innosetup.exe /VERYSILENT
setx PATH "%PATH%;C:\\Program Files (x86)\\Inno Setup 6"
cd Inno
dotnet publish ..\\PixelGraph.UI -c Release -r win-x64 -o src -p:EnableWindowsTargeting=true --self-contained false
ISCC.exe "setup.iss"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: inno
path: publish
path: Inno/publish

publish_release:
name: Publish Release
Expand Down
2 changes: 2 additions & 0 deletions Inno/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/src
/publish
2 changes: 2 additions & 0 deletions Inno/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dotnet publish ..\\PixelGraph.UI -c Release -r win-x64 -o src -p:EnableWindowsTargeting=true --self-contained false
"C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" "setup.iss"
6 changes: 3 additions & 3 deletions Inno/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ ArchitecturesAllowed=x64compatible
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
InfoBeforeFile=D:\PixelGraph\PixelGraph.UI\Resources\EULA.rtf
InfoBeforeFile=..\PixelGraph.UI\Resources\EULA.rtf
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=D:\PixelGraph\publish
OutputDir=./publish
OutputBaseFilename=PixelGraph-UI-{#MyAppVersion} Install
Compression=lzma
SolidCompression=yes
Expand All @@ -50,7 +50,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"

[Files]
Source: "D:\PixelGraph\PixelGraph.UI\bin\x64\Release\net6.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
Source: "src\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down

0 comments on commit 113c1d6

Please sign in to comment.