diff --git a/package.json b/package.json index 5fbfd4d3..2cb1d6c9 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,13 @@ "scripts": { "dev": "rm -rf app_dist && tsc && electron .", "setup:env": "npm install && cd servers/fastapi && poetry env remove --all && poetry install && cd ../../servers/nextjs && npm install", + "install:pyinstaller": "cd servers/fastapi && .venv/bin/pip install pyinstaller", "build:ts": "rm -rf app_dist && 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 && cd servers/nextjs && npm run build && cp -r out ../../resources/nextjs", "build:fastapi": "rm -rf resources/fastapi && cd servers/fastapi && .venv/bin/pyinstaller --distpath ../../resources server.spec", "build:electron": "rm -rf app_dist && tsc && node build.js", - "build:all": "npm run clean:build && npm run setup:env && npm run build:ts && npm run build:nextjs && npm run build:fastapi && npm run build:electron", + "build:all": "npm run clean:build && npm run setup:env && npm run build:ts && npm run install:pyinstaller && npm run build:nextjs && npm run build:fastapi && npm run build:electron", "clean:build": "rm -rf resources/nextjs && rm -rf resources/fastapi && rm -rf app_dist" }, "devDependencies": {