mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Install Mac specific DMG creator only on the Mac Runner
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -31,19 +31,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
brew install create-dmg
|
|
||||||
|
|
||||||
- name: Install Application
|
- name: Install Khoj Application
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Package Mac App
|
- name: Create Mac App
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
# Set Target Architecture
|
# Set Target Architecture
|
||||||
sed -E -i "" "s/target_arch='(.*)'/target_arch='x86_64'/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
|
||||||
|
# Install Mac DMG Creator
|
||||||
|
brew install create-dmg
|
||||||
# Copy app to separate dmg folder
|
# Copy app to separate dmg folder
|
||||||
mkdir -p dist/dmg && cp -r dist/Khoj.app dist/dmg
|
mkdir -p dist/dmg && cp -r dist/Khoj.app dist/dmg
|
||||||
# Create disk image with the app
|
# Create disk image with the app
|
||||||
@@ -64,7 +65,7 @@ jobs:
|
|||||||
name: khoj.dmg
|
name: khoj.dmg
|
||||||
path: dist/Khoj.dmg
|
path: dist/Khoj.dmg
|
||||||
|
|
||||||
- name: Package Windows App
|
- name: Create Windows App
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -78,7 +79,7 @@ jobs:
|
|||||||
name: khoj.exe
|
name: khoj.exe
|
||||||
path: dist/Khoj.exe
|
path: dist/Khoj.exe
|
||||||
|
|
||||||
- name: Package Ubuntu App
|
- name: Create Debian App
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
# Set Target Architecture
|
# Set Target Architecture
|
||||||
|
|||||||
Reference in New Issue
Block a user