Update main.yml

feature/plugins-parameters
geoffwhittington 2023-04-21 19:38:27 -04:00 zatwierdzone przez GitHub
rodzic ae175a9c57
commit cce8e47f66
1 zmienionych plików z 8 dodań i 12 usunięć

Wyświetl plik

@ -22,20 +22,16 @@ jobs:
- name: Build executable
run: pyinstaller --name=mmrelay.exe --onefile --console main.py
- name: Download and install Winget
- name: Install Inno Setup
run: |
Invoke-WebRequest -Uri 'https://winget.azureedge.net/cache/winget-cli-0.3.13971-preview.zip' -OutFile 'winget.zip'
Expand-Archive -Path 'winget.zip' -DestinationPath "$env:ProgramFiles\WindowsApps"
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
- name: Install NSIS
$url = 'https://www.jrsoftware.org/download.php/is-unicode.exe'
$installer = "$env:TEMP\installer.exe"
Invoke-WebRequest $url -OutFile $installer
Start-Process -FilePath $installer -ArgumentList '/VERYSILENT' -Wait
- name: Build Installer
run: |
winget install -e --id NSIS.NSIS
- name: Compile NSIS script
run: |
makensis mmrelay.nsi
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" mmrelay.iss
- name: Upload artifact
uses: actions/upload-artifact@v2
with: