Skip to content

Commit

Permalink
Merge pull request #3 from BlueCitizens/dev-gui
Browse files Browse the repository at this point in the history
Add GUI and Improve Functionality
  • Loading branch information
BlueCitizens authored Feb 20, 2024
2 parents 84f7287 + 5345a88 commit db32eaa
Show file tree
Hide file tree
Showing 246 changed files with 50,373 additions and 86 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea
node_modules
out
venv/
app.dist/
app.exe
app.spec
bilicache.log
dist/
npminstall-debug.log
nuitka-crash-report.xml
Empty file added .npmrc
Empty file.
Binary file added build/bili.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
Binary file added build/icon.icns
Binary file not shown.
Binary file added build/icon.ico
Binary file not shown.
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions dev-app-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
provider: generic
url: https://example.com/auto-updates
updaterCacheDirName: bilibili-cache-converter-gui-updater
56 changes: 56 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
appId: com.bckun.app
productName: Bili Cache Converter
directories:
buildResources: build
files:
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,nuitka-crash-report.xml,CHANGELOG.md,README.md, package.json,requirements.txt}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml,*.log}'
- '!venv/*'
- '!**/node_modules/{axios/*,mdui/*,vue-router/*}'
- '!**/node_modules/*/icons/*'
- '!app.*/*'
asarUnpack:
- resources/**
win:
icon: 'build/bili.ico'
executableName: bccgui
requestedExecutionLevel: requireAdministrator
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false
perMachine: true
allowToChangeInstallationDirectory: true
deleteAppDataOnUninstall: true
createStartMenuShortcut: true

mac:
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://example.com/auto-updates
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
39 changes: 39 additions & 0 deletions electron.vite.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [vue({
template: {
compilerOptions: {
// 所有以 mdui- 开头的标签名都是 mdui 组件
isCustomElement: (tag) => tag.startsWith('mdui-')
}
}
})],
server: {
host: '127.0.0.1',
port: 5173,
strictPort: false,
proxy: {
'/api': {
target: `http://127.0.0.1:5001`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
},
}
}
})
86 changes: 0 additions & 86 deletions main.py

This file was deleted.

Loading

0 comments on commit db32eaa

Please sign in to comment.