86 lines
2.6 KiB
JSON
86 lines
2.6 KiB
JSON
{
|
|
"name": "telegram-invite-automation",
|
|
"version": "0.3.0",
|
|
"private": true,
|
|
"description": "Automated user parsing and invites for Telegram groups",
|
|
"main": "src/main/index.js",
|
|
"type": "commonjs",
|
|
"scripts": {
|
|
"dev": "concurrently -k \"vite\" \"wait-on http://127.0.0.1:5173 && electron .\"",
|
|
"start": "electron .",
|
|
"build": "vite build && electron-builder",
|
|
"build:win": "vite build && electron-builder --win",
|
|
"build:win:x64": "vite build && electron-builder --win --x64",
|
|
"build:win:x64:installer": "vite build && electron-builder --win --x64 --config.win.target=nsis",
|
|
"build:win:x64:portable": "vite build && electron-builder --win --x64 --config.win.target=portable",
|
|
"build:win:x64:portable:zip": "npm run build:win:x64:portable && powershell -Command \"Compress-Archive -Force -Path dist/release/*portable*.exe -DestinationPath dist/release/Telegram-Invite-Automation-win-portable-x64.zip\"",
|
|
"build:mac": "vite build && electron-builder --mac",
|
|
"build:all": "vite build && electron-builder --win --mac",
|
|
"build:linux": "vite build && electron-builder --linux",
|
|
"dist": "vite build && electron-builder",
|
|
"build:converter:mac": "bash scripts/build-converter.sh",
|
|
"build:converter:win": "powershell -ExecutionPolicy Bypass -File scripts/build-converter.ps1"
|
|
},
|
|
"dependencies": {
|
|
"better-sqlite3": "^9.4.0",
|
|
"dayjs": "^1.11.11",
|
|
"telegram": "^2.26.9",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"concurrently": "^8.2.2",
|
|
"electron": "^29.1.0",
|
|
"electron-builder": "^24.12.0",
|
|
"wait-on": "^7.2.0",
|
|
"vite": "^5.1.4"
|
|
},
|
|
"build": {
|
|
"appId": "com.profi.telegram-invite-automation",
|
|
"productName": "Telegram Invite Automation",
|
|
"icon": "resources/icon.png",
|
|
"directories": {
|
|
"output": "dist/release"
|
|
},
|
|
"files": [
|
|
"dist/**",
|
|
"src/main/**",
|
|
"resources/**",
|
|
"package.json"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "resources/converter",
|
|
"to": "converter"
|
|
}
|
|
],
|
|
"asar": true,
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"target": [
|
|
"dmg",
|
|
"zip"
|
|
],
|
|
"artifactName": "Telegram-Invite-Automation-mac-${version}.${ext}"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis",
|
|
"portable"
|
|
],
|
|
"artifactName": "Telegram-Invite-Automation-win-${arch}-${version}.${ext}"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage",
|
|
"deb"
|
|
]
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true
|
|
}
|
|
}
|
|
}
|