Build Installers #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Installers | |
on: | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
build_windows: | |
defaults: | |
run: | |
shell: bash -l {0} | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: build | |
environment-file: .github/environments/build-windows.yml | |
- name: Build executable | |
run: pyinstaller windows.spec | |
- name: Compile Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: win-setup.iss | |
- name: Upload installer as artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: windows-installer | |
path: dist/Activity_Browser_Install_Win_x64 | |
build_macos: | |
defaults: | |
run: | |
shell: bash -l {0} | |
runs-on: macos-13 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: build | |
environment-file: .github/environments/build-macos.yml | |
- name: Build executable | |
run: pyinstaller macos.spec -y | |
- name: Rename .app package | |
run: | | |
brew install create-dmg | |
mv "dist/Activity Browser" "dist/Activity Browser.app" | |
create-dmg \ | |
--volname "Activity Browser Installer" \ | |
--volicon "ab_launcher\assets\activity-browser.icns" \ | |
--window-pos 200 120 \ | |
--window-size 800 400 \ | |
--icon-size 100 \ | |
--icon "Activity Browser.app" 200 190 \ | |
--hide-extension "Activity Browser.app" \ | |
--app-drop-link 600 185 \ | |
"Activity_Browser_Install_Mac_x64.dmg" \ | |
"dist/" | |
- name: Upload installer as artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: macos-installer | |
path: Activity_Browser_Install_Mac_x64.dmg |