mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Run job matrix to wrap Khoj into app installers for Debian, Windows too
This commit is contained in:
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@@ -15,8 +15,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Create Mac App
|
strategy:
|
||||||
runs-on: macos-latest
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -36,6 +37,7 @@ jobs:
|
|||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Package Mac App
|
- name: Package Mac App
|
||||||
|
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
|
||||||
@@ -56,6 +58,34 @@ jobs:
|
|||||||
"dist/Khoj.dmg" \
|
"dist/Khoj.dmg" \
|
||||||
"dist/dmg/"
|
"dist/dmg/"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
if : matrix.os == 'macos-latest'
|
||||||
with:
|
with:
|
||||||
name: khoj.dmg
|
name: khoj.dmg
|
||||||
path: dist/Khoj.dmg
|
path: dist/Khoj.dmg
|
||||||
|
|
||||||
|
- name: Package Windows App
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
# Set Target Architecture
|
||||||
|
# sed -E -i "s/target_arch='(.*)'/target_arch='x86_64'/g" Khoj.spec
|
||||||
|
# Create Windows app
|
||||||
|
pyinstaller Khoj.spec
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if : matrix.os == 'windows-latest'
|
||||||
|
with:
|
||||||
|
name: khoj.exe
|
||||||
|
path: dist/Khoj.exe
|
||||||
|
|
||||||
|
- name: Package Ubuntu App
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
# Set Target Architecture
|
||||||
|
sed -E -i "s/target_arch='(.*)'/target_arch='x86_64'/g" Khoj.spec
|
||||||
|
# Create Debian app
|
||||||
|
pyinstaller Khoj.spec
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if : matrix.os == 'ubuntu-latest'
|
||||||
|
with:
|
||||||
|
name: khoj.deb
|
||||||
|
path: dist/Khoj.deb
|
||||||
@@ -48,7 +48,7 @@ exe = EXE(
|
|||||||
console=False,
|
console=False,
|
||||||
disable_windowed_traceback=False,
|
disable_windowed_traceback=False,
|
||||||
argv_emulation=False,
|
argv_emulation=False,
|
||||||
target_arch='arm64',
|
target_arch='x86_64',
|
||||||
codesign_identity=None,
|
codesign_identity=None,
|
||||||
entitlements_file=None,
|
entitlements_file=None,
|
||||||
icon='src/interface/web/assets/icons/favicon.icns',
|
icon='src/interface/web/assets/icons/favicon.icns',
|
||||||
|
|||||||
Reference in New Issue
Block a user