Skip to content

Commit

Permalink
Add app.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Jun 17, 2024
1 parent 72f520b commit 456436b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
run: pip install -r api/requirements.txt pyinstaller==6.6.0

- name: Build flask exe
run: pyinstaller --name app --onefile --console api/app.py --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext

run: pyinstaller app.spec
- name: Install dependencies
run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: pip install -r api/requirements.txt pyinstaller==6.6.0

- name: Build flask exe
run: pyinstaller --name app --onefile --console api/app.py --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext
run: pyinstaller app.spec

- name: Install dependencies
run: npm install
Expand Down
5 changes: 3 additions & 2 deletions api/app.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# -*- mode: python ; coding: utf-8 -*-

entry_point = 'app.py'
Expand All @@ -9,7 +10,7 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hiddenimports=['tiktoken_ext.openai_public', 'tiktoken_ext'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down Expand Up @@ -48,4 +49,4 @@ coll = COLLECT(
upx=True,
upx_exclude=[],
name='app',
)
)

0 comments on commit 456436b

Please sign in to comment.