mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +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:
|
||||
publish:
|
||||
name: Create Mac App
|
||||
runs-on: macos-11.0
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -27,7 +27,6 @@ jobs:
|
||||
|
||||
- name: Install Dependencies
|
||||
env:
|
||||
CFLAGS: -arch arm64 -arch x86_64
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pyinstaller
|
||||
@@ -35,16 +34,14 @@ jobs:
|
||||
|
||||
- name: Install Application
|
||||
env:
|
||||
CFLAGS: -arch arm64 -arch x86_64
|
||||
run: |
|
||||
pip install --upgrade .
|
||||
|
||||
- name: Package Mac App
|
||||
env:
|
||||
CFLAGS: -arch arm64 -arch x86_64
|
||||
run: |
|
||||
# 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
|
||||
pyinstaller Khoj.spec
|
||||
# Copy app to separate dmg folder
|
||||
|
||||
Reference in New Issue
Block a user