mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Run job matrix to wrap Khoj into app installers for Debian, Windows too
This commit is contained in:
parent
22a9aefaef
commit
a10a2ea3ad
2 changed files with 34 additions and 4 deletions
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
@ -15,8 +15,9 @@ on:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
name: Create Mac App
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -36,6 +37,7 @@ jobs:
|
|||
pip install --upgrade .
|
||||
|
||||
- name: Package Mac App
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
# Set Target Architecture
|
||||
sed -E -i "" "s/target_arch='(.*)'/target_arch='x86_64'/g" Khoj.spec
|
||||
|
@ -56,6 +58,34 @@ jobs:
|
|||
"dist/Khoj.dmg" \
|
||||
"dist/dmg/"
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'macos-latest'
|
||||
with:
|
||||
name: 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,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch='arm64',
|
||||
target_arch='x86_64',
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon='src/interface/web/assets/icons/favicon.icns',
|
||||
|
|
Loading…
Reference in a new issue