一键导入
aicut-deploy
Guides how to build and deploy AIcut as an Electron application. Use when the user asks about packaging, building installers, or releasing the app.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides how to build and deploy AIcut as an Electron application. Use when the user asks about packaging, building installers, or releasing the app.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | aicut-deploy |
| description | Guides how to build and deploy AIcut as an Electron application. Use when the user asks about packaging, building installers, or releasing the app. |
This skill helps package and deploy AIcut as a standalone desktop application.
Ensure you have:
bun install in AIcut-Studio)cd AIcut-Studio/apps/web
npm run dev # Start Next.js dev server
npm run electron # Start Electron (in another terminal)
cd AIcut-Studio/apps/web
# Build Next.js first
npm run build
# Package for current platform
npm run electron:build
The electron-builder config in package.json supports:
| Platform | Command | Output |
|---|---|---|
| Windows | electron-builder --win | .exe installer, portable |
| macOS | electron-builder --mac | .dmg, .zip |
| Linux | electron-builder --linux | .AppImage, .deb |
Located in AIcut-Studio/apps/web/package.json:
"build": {
"appId": "com.aicut.studio",
"productName": "AIcut Studio",
"directories": {
"output": "dist-electron"
},
"extraResources": [
{
"from": "../../../tools",
"to": "tools"
}
],
"win": {
"target": ["nsis", "portable"]
}
}
The extraResources section ensures Python scripts are bundled:
tools/ directory at project rootresources/tools/ in the packaged appFor production, ensure these are set (or bundled in .env):
GROQ_API_KEY - For speech recognitionOPENAI_API_KEY - For AI features (optional)node node_modules/electron/install.js
Check electron/main.js for the Python spawn path. It should resolve correctly in both dev and production.
node_modules is not duplicatedpackage.jsonnpm run build successfullynpm run electron:build locally