mirror of
https://github.com/PCSX2/pcsx2-installer.git
synced 2024-10-06 23:23:24 +00:00
Add workflow to automagically create an installer
This commit is contained in:
parent
bcfe326a7f
commit
fdbacc0b39
63
.github/workflows/create-installer.yml
vendored
Normal file
63
.github/workflows/create-installer.yml
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
name: Create Installer
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
is_latest:
|
||||
description: 'Should we pull from the latest tag?'
|
||||
required: true
|
||||
default: 'true'
|
||||
type: 'choice'
|
||||
options:
|
||||
- 'true'
|
||||
- 'false'
|
||||
include_prelease:
|
||||
description: 'Should the latest pre-release tag be used?'
|
||||
required: true
|
||||
default: 'false'
|
||||
type: 'choice'
|
||||
options:
|
||||
- 'true'
|
||||
- 'false'
|
||||
tag_value:
|
||||
description: 'The tag to use if latest is set to false. Include the "v" prefix!'
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
build-installer:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: robinraju/release-downloader@v1
|
||||
name: Download the Release
|
||||
id: release_download
|
||||
with:
|
||||
repository: "PCSX2/pcsx2"
|
||||
latest: ${{github.event.inputs.is_latest}}
|
||||
preRelease: ${{github.event.inputs.include_prelease}}
|
||||
tag: ${{github.event.inputs.tag_value}}
|
||||
fileName: 'pcsx2-v*-windows-x64-Qt.7z'
|
||||
|
||||
- name: Extract the Release
|
||||
shell: cmd
|
||||
run: |
|
||||
"C:\Program Files\7-Zip\7z.exe" x -o.\main pcsx2-${{steps.release_download.outputs.tag_name}}-windows-x64-Qt.7z
|
||||
|
||||
- name: Inject Release Tag into Installer Script
|
||||
shell: bash
|
||||
run: |
|
||||
sed -i 's/PCSX2_VERSION_STRING/${{steps.release_download.outputs.tag_name}}/g' 'PCSX2 Installer.iss'
|
||||
|
||||
- uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
|
||||
name: Build the Release
|
||||
with:
|
||||
path: 'PCSX2 Installer.iss'
|
||||
|
||||
- name: Upload Installer Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: PCSX2-${{steps.release_download.outputs.tag_name}}-windows-x64-installer.exe
|
||||
path: |
|
||||
PCSX2\PCSX2-${{steps.release_download.outputs.tag_name}}-windows-x64-installer.exe
|
@ -2,7 +2,9 @@
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "PCSX2"
|
||||
#define MyAppVersion "v2.0.2"
|
||||
|
||||
; Automatically changed by the GitHub action. An example would be "v2.0.0"
|
||||
#define MyAppVersion "PCSX2_VERSION_STRING"
|
||||
#define MyAppPublisher "PCSX2 Team"
|
||||
#define MyAppURL "https:/pcsx2.net/"
|
||||
#define MyAppExeName "pcsx2-qt.exe"
|
||||
@ -185,4 +187,4 @@ Filename: "{tmp}\VC_redist.x64.exe"; Parameters: "/q /norestart"; \
|
||||
StatusMsg: "Installing VC++ 2019-2022 Redistributables... Please Wait."; \
|
||||
BeforeInstall: SetMarqueeProgress(True); \
|
||||
AfterInstall: SetMarqueeProgress(False)
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
|
BIN
res/Redist/VC_redist.x64.exe
Normal file
BIN
res/Redist/VC_redist.x64.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user