mirror of
https://github.com/chidiwilliams/buzz.git
synced 2024-06-27 04:00:37 +02:00
Compare commits
3 commits
b51aa3fe43
...
c664221563
Author | SHA1 | Date | |
---|---|---|---|
c664221563 | |||
7bb835ad04 | |||
74e629bf9a |
90
.github/workflows/manual-build.yml
vendored
Normal file
90
.github/workflows/manual-build.yml
vendored
Normal file
|
@ -0,0 +1,90 @@
|
|||
---
|
||||
name: Manual Build
|
||||
on: workflow_dispatch
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
- os: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10.11"
|
||||
|
||||
- name: Install Poetry Action
|
||||
uses: snok/install-poetry@v1.3.1
|
||||
with:
|
||||
virtualenvs-create: true
|
||||
virtualenvs-in-project: true
|
||||
|
||||
- name: Load cached venv
|
||||
id: cached-poetry-dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .venv
|
||||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-2
|
||||
|
||||
- uses: FedericoCarboni/setup-ffmpeg@v3.1
|
||||
id: setup-ffmpeg
|
||||
with:
|
||||
ffmpeg-version: release
|
||||
architecture: 'x64'
|
||||
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
|
||||
- name: Bundle
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||
|
||||
brew install create-dmg
|
||||
poetry run make bundle_mac_unsigned
|
||||
|
||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||
|
||||
poetry run make bundle_windows
|
||||
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Buzz-${{ runner.os }}
|
||||
path: |
|
||||
dist/Buzz*-windows.exe
|
||||
dist/Buzz*-mac.dmg
|
||||
|
||||
build-snap:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- uses: snapcore/action-build@v1
|
||||
id: snapcraft
|
||||
- run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libportaudio2
|
||||
- run: sudo snap install --devmode *.snap
|
||||
- run: |
|
||||
cd $HOME
|
||||
xvfb-run buzz --version
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: snap
|
||||
path: ${{ steps.snapcraft.outputs.snap }}
|
16
Makefile
16
Makefile
|
@ -10,6 +10,8 @@ bundle_windows: dist/Buzz
|
|||
|
||||
bundle_mac: dist/Buzz.app codesign_all_mac zip_mac notarize_zip staple_app_mac dmg_mac
|
||||
|
||||
bundle_mac_unsigned: dist/Buzz.app zip_mac dmg_mac_unsigned
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
LIBWHISPER :=
|
||||
|
@ -95,6 +97,20 @@ dmg_mac:
|
|||
"${mac_dmg_path}" \
|
||||
"dist/dmg/"
|
||||
|
||||
dmg_mac_unsigned:
|
||||
ditto -x -k "${mac_zip_path}" dist/dmg
|
||||
create-dmg \
|
||||
--volname "Buzz" \
|
||||
--volicon "./assets/buzz.icns" \
|
||||
--window-pos 200 120 \
|
||||
--window-size 600 300 \
|
||||
--icon-size 100 \
|
||||
--icon "Buzz.app" 175 120 \
|
||||
--hide-extension "Buzz.app" \
|
||||
--app-drop-link 425 120 \
|
||||
"${mac_dmg_path}" \
|
||||
"dist/dmg/"
|
||||
|
||||
staple_app_mac:
|
||||
xcrun stapler staple ${mac_app_path}
|
||||
|
||||
|
|
Loading…
Reference in a new issue