mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Just make Github runner build app for Mac x86 64 bit architecture
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -16,7 +16,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Create Mac App
|
name: Create Mac App
|
||||||
runs-on: macos-11.0
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -27,7 +27,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
env:
|
env:
|
||||||
CFLAGS: -arch arm64 -arch x86_64
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
@@ -35,16 +34,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Application
|
- name: Install Application
|
||||||
env:
|
env:
|
||||||
CFLAGS: -arch arm64 -arch x86_64
|
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Package Mac App
|
- name: Package Mac App
|
||||||
env:
|
env:
|
||||||
CFLAGS: -arch arm64 -arch x86_64
|
|
||||||
run: |
|
run: |
|
||||||
# Set Target Architecture
|
# Set Target Architecture
|
||||||
sed -E -i "" "s/target_arch='(.*)'/target_arch='universal2'/g" Khoj.spec
|
sed -E -i "" "s/target_arch='(.*)'/target_arch='x86_64'/g" Khoj.spec
|
||||||
# Create Mac app
|
# Create Mac app
|
||||||
pyinstaller Khoj.spec
|
pyinstaller Khoj.spec
|
||||||
# Copy app to separate dmg folder
|
# Copy app to separate dmg folder
|
||||||
|
|||||||
Reference in New Issue
Block a user