changed build.ts to .js again and some fixes

This commit is contained in:
Daniel Haller 2024-05-01 02:10:10 +02:00
parent 1252df63f7
commit 7e660164b8
5 changed files with 587 additions and 2208 deletions

7
.gitignore vendored
View File

@ -8,8 +8,6 @@ node_modules
.env
dist
.DS_Store
build/
ffmpeg/
# Electron
crunchyroll-downloader-output
@ -18,3 +16,8 @@ debug.log
*.log
debug.json
errors.json
build/
crunchyroll-downloader-output-*/
# FFMPEG
ffmpeg/

View File

@ -65,7 +65,7 @@ builder
targets: Platform[platform].createTarget(),
config: options
})
.then((result: any) => {
.then((result) => {
console.log('----------------------------')
console.log('Platform:', platform)
console.log('Output:', JSON.stringify(result, null, 2))

View File

@ -14,8 +14,8 @@
"transpile-src": "tsc -p ./src --outDir .output/src",
"dev:electron": "NODE_ENV=development concurrently --kill-others \"nuxt dev\" \"tsc-watch -p ./src --outDir .output/src --onSuccess 'electron ./.output/src/electron/background.js'\"",
"dev:electron:win": "set NODE_ENV=development& concurrently --kill-others \"nuxt dev\" \"tsc-watch -p ./src --outDir .output/src --onSuccess run.electron\"",
"build:electron": "pnpm prettier:fix && pnpm build && pnpm transpile-src && node build.ts",
"prettier:fix": "pnpm prettier src --write && pnpm prettier components --write && pnpm prettier pages --write && pnpm prettier build.ts --write"
"build:electron": "pnpm prettier:fix && pnpm build && pnpm transpile-src && node build.js",
"prettier:fix": "pnpm prettier src --write && pnpm prettier components --write && pnpm prettier pages --write && pnpm prettier build.js --write"
},
"devDependencies": {
"7zip-bin": "^5.2.0",
@ -28,11 +28,12 @@
"dotenv": "^16.4.5",
"electron": "^30.0.1",
"electron-builder": "^24.13.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"nuxt": "^3.11.2",
"nuxt-icon": "^0.6.10",
"prettier": "^3.2.5",
"prettier": "^2.8.8",
"sass": "^1.75.0",
"sass-loader": "^13.3.3",
"tsc-watch": "^6.2.0",

File diff suppressed because it is too large Load Diff

View File

@ -56,12 +56,9 @@ export default (mainWindow: BrowserWindow) => {
autoUpdater.checkForUpdates()
setInterval(
() => {
autoUpdater.checkForUpdates()
},
1000 * 60 * 60 * 2
)
setInterval(() => {
autoUpdater.checkForUpdates()
}, 1000 * 60 * 60 * 2)
console.log('[-] MODULE::updater Initialized')
}