Skip to content

Launcher Release

Launcher Release #10

Workflow file for this run

name: Launcher Release
on:
workflow_dispatch: # Allows manual triggering
push:
tags:
- '*'
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.exe
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
release:
needs: [build_windows, build_macos]
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Fetch Windows build
uses: actions/download-artifact@master
with:
name: windows-installer
path: windows-installer
- name: Fetch MacOS build
uses: actions/download-artifact@master
with:
name: macos-installer
path: macos-installer
- name: Create github release
uses: ncipollo/release-action@v1
with:
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "windows-installer/Activity_Browser_Install_Win_x64.exe, macos-installer/Activity_Browser_Install_Mac_x64.dmg"