Just make Github runner build app for Mac x86 64 bit architecture

This commit is contained in:
Debanjum Singh Solanky
2022-08-14 02:54:14 +03:00
parent 8acc9e49d5
commit 46a8257783

View File

@@ -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