Skip to content

Commit

Permalink
Merge branch 'TestingAutoReleases' of https://github.com/YBTopaz8/Dim…
Browse files Browse the repository at this point in the history
…mer-MAUI into TestingAutoReleases
  • Loading branch information
YBTopaz8 committed Jan 1, 2025
2 parents e5185b9 + b73e294 commit 97f45de
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-dimmer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
release:
types: [published]
pull_request:
branches:
- main
types: [opened, synchronize]

jobs:
build-windows:
build-windows:
name: Build and Package Windows Installer
runs-on: windows-latest

Expand All @@ -27,15 +26,17 @@ jobs:
--self-contained=false -p:WindowsPackageType=None \
-o ./windows-output

- name: Install Inno Setup
uses: jrsoftware/issrc-action@v1
with:
inno-setup-version: latest # or specify a version
- name: Download and Install Inno Setup
run: |
$innoSetupUrl = "https://files.jrsoftware.org/is/6/innosetup-6.3.3.exe" # Update if newer version
$installerPath = "innosetup.exe"
Invoke-WebRequest -Uri $innoSetupUrl -OutFile $installerPath
Start-Process -Wait -FilePath $installerPath -ArgumentList "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART"
- name: Package with Inno Setup
run: |
# Pass the Windows output directory as a define and explicitly set the output directory
ISCC.exe /dMySourceDir=./windows-output /o./Output ./releasePackaging/setup_dimmer.iss
ISCC.exe /dMySourceDir=./windows-output /o./Output ./releasePacking/setup_dimmer.iss
- name: Verify Installer Exists
run: |
Expand All @@ -46,6 +47,7 @@ jobs:
echo "Installer file found: ./Output/Setup_Dimmer.exe"
fi
- name: Upload Windows Installer Artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -139,4 +141,4 @@ jobs:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./release-assets/android/Dimmer-Aligned.apk
# asset_name: Dimmer.apk
# asset_content_type: application/vnd.android.package-archive
# asset_content_type: application/vnd.android.package-archive

0 comments on commit 97f45de

Please sign in to comment.