Files
game_voice_recorder/app/package.json
EJClaw c2a5547a68 앱 v1.2.0: exe 디스코드 로그인 · 유저 등록 · 관리자 페이지
- 사이트 서버: 앱 로그인(/auth/app/begin·start·poll, 기존 OAuth 콜백 재사용), 앱 토큰(/app/me, 해시 저장),
  유저 등록 API(/app/admin/users, 등록·역할·해제는 최고 관리자만, 목록은 관리자도). 최고 관리자 2명 고정
- 앱: 등록된 계정으로 로그인해야 코어(봇·녹음·사이트 연결)를 띄운다. 미등록이면 "등록되지 않은 아이디" + 아이디 표시.
  10분마다 재확인, 등록 해제 시 즉시 잠금. 서버 연결 실패 시 마지막 확인 후 3일 유예
- 겜녹이 봇 토큰을 exe 에 넣지 않고 로그인한 등록 유저에게 서버가 내려준다 (잠기면 삭제). win-ci 토큰 주입 제거
- 관리자 탭(유저 등록·목록·접속 기록), 관리자 전용 설정(봇 변경·TTS 안내·보관 기간·사이트·학습 데이터·파인튜닝)은
  일반 유저에게 잠금 표시 + 메인 프로세스에서 차단
- 테스트: 서버 앱 로그인 2건, 앱↔서버 통합 3건, Electron 로그인 E2E 스크립트(scripts/login-e2e.mts)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:08:44 +09:00

106 lines
2.6 KiB
JSON

{
"name": "gvr-app",
"productName": "겜녹이",
"version": "1.2.0",
"description": "겜녹이 (Game Voice Recorder) - 게임 연동 디스코드 음성 기록",
"private": true,
"main": "dist/main.cjs",
"author": "tkrmagid",
"license": "UNLICENSED",
"scripts": {
"build": "node build.mjs",
"typecheck": "tsc --noEmit -p .",
"test": "node --import tsx --test test/*.test.ts",
"core": "node --import tsx src/core/cli.ts",
"start": "npm run build && electron .",
"dist:win": "npm run build && electron-builder --win --x64 --publish never",
"dist:dir": "npm run build && electron-builder --dir --publish never"
},
"dependencies": {
"@discordjs/voice": "^0.19.2",
"better-sqlite3": "^12.11.1",
"discord.js": "^14.27.0",
"fastify": "^5.6.1",
"msedge-tts": "^2.0.3",
"prism-media": "^1.3.5",
"ws": "^8.18.3"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^22.18.0",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/ws": "^8.18.1",
"electron": "^38.8.6",
"electron-builder": "^26.0.12",
"esbuild": "^0.25.10",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3"
},
"build": {
"appId": "kr.tkrmagid.gvr",
"productName": "겜녹이",
"executableName": "GameVoiceRecorder",
"copyright": "tkrmagid",
"directories": {
"output": "release",
"buildResources": "build-res"
},
"files": [
"dist/**/*",
"!dist/**/*.map",
"package.json"
],
"asar": true,
"asarUnpack": [
"node_modules/better-sqlite3/**",
"node_modules/@snazzah/**",
"node_modules/bindings/**",
"node_modules/file-uri-to-path/**"
],
"extraResources": [
{
"from": "resources",
"to": "gvr"
},
{
"from": "../worker/dist/gvr-worker",
"to": "worker"
},
{
"from": "../assets/app",
"to": "brand",
"filter": [
"*.png",
"*.ico"
]
}
],
"npmRebuild": true,
"win": {
"target": [
{
"target": "zip",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "../assets/app/icon.ico",
"artifactName": "GameVoiceRecorder-${version}-win-x64.${ext}",
"signAndEditExecutable": true
},
"portable": {
"artifactName": "GameVoiceRecorder-${version}-portable.exe",
"unpackDirName": "GameVoiceRecorder"
}
}
}