-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (43 loc) · 1.45 KB
/
macos_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: MacOS Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: GitHub Tag
run: |
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Setup + Build + Zip
run: |
# replace the pyqt requirements in pyproject.toml
sed -i '' 's/pyqt5-qt5==/pyqt5-qt5>=/' pyproject.toml
echo "Venv setup"
python -m venv .venv
source ./.venv/bin/activate
echo "Installing dependencies"
pip install -e ./
echo "Building style"
python build_style.py
echo "Building application"
cd scripts
bash build_mac.sh
echo "Zipping to Blender_Launcher_${{ github.ref_name }}_macos_arm64.zip"
cd ../dist/release
# this zips just like the one in finder
ditto -c -k --sequesterRsrc --keepParent "Blender Launcher.app" "Blender_Launcher_${{ github.ref_name }}_macos_arm64.zip"
mv "Blender_Launcher_${{ github.ref_name }}_macos_arm64.zip" ../..
cd ../..
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Blender_Launcher_${{ github.ref_name }}_macos_arm64.zip