diff --git a/package.json b/package.json index 9db30d13..78a74376 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:ts": "tsc", "build:css": "tailwindcss -i ./resources/ui/assets/css/tailwind.import.css -o ./resources/ui/assets/css/tailwind.css --watch", "build:nextjs": "rm -rf resources/nextjs && cp -r servers/nextjs resources/nextjs && cd resources/nextjs && npm install --omit=dev && npm run build", - "build:fastapi": "rm -rf resources/fastapi && cd servers/fastapi && .venv/bin/pyinstaller server.spec", + "build:fastapi": "rm -rf resources/fastapi && cd servers/fastapi && .venv/bin/pyinstaller --distpath ../../resources server.spec", "build:electron": "tsc && node build.js", "clean:build": "rm -rf resources/nextjs && rm -rf resources/fastapi" }, @@ -34,4 +34,4 @@ "tailwindcss": "^4.1.5", "tree-kill": "^1.2.2" } -} +} \ No newline at end of file diff --git a/servers/fastapi/server.spec b/servers/fastapi/server.spec index bd80e0b8..04c78fcc 100644 --- a/servers/fastapi/server.spec +++ b/servers/fastapi/server.spec @@ -32,7 +32,6 @@ exe = EXE( target_arch=None, codesign_identity=None, entitlements_file=None, - distpath='../../resources/fastapi', ) coll = COLLECT( exe, @@ -42,5 +41,4 @@ coll = COLLECT( upx=True, upx_exclude=[], name='fastapi', - distpath='../../resources/fastapi', )