@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"dev": "pnpm -r --parallel -F main -F renderer -F mobile run dev",
"build": "pnpm -r --parallel -F main -F renderer run build",
"build": "pnpm -r --parallel -F main -F renderer -F mobile run build",
"pack": "pnpm -F main run pack",
"release": "pnpm run build && pnpm -F main run release"
},
@ -11,7 +11,7 @@ if (semver.neq(process.env.APP_VERSION, packageJson.version)) {
process.exit(0);
}
const extraResources = [];
const extraResources = ["build/mobile/**/*"];
if (process.platform === "win32") {
// windows
extraResources.push("bin/ffmpeg.exe", "bin/N_m3u8DL-CLI_v3.0.2.exe");
@ -24,8 +24,9 @@ export default class WebServiceImpl implements WebService {
) {
this.app = new Koa();
this.router = new Router();
this.baseUrl = `http://${getLocalIP()}:${process.env.APP_SERVER_PORT
}/video/`;
this.baseUrl = `http://${getLocalIP()}:${
process.env.APP_SERVER_PORT
async init(): Promise<void> {
@ -9,7 +9,6 @@ declare module 'vue' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanEmpty: typeof import('vant/es')['Empty']
VanList: typeof import('vant/es')['List']
@ -1,4 +1,5 @@
import { fileURLToPath, URL } from 'node:url'
import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
@ -24,5 +25,9 @@ export default defineConfig({
server: {
host: true,
port: 8556
build: {
outDir: path.resolve(__dirname, "../main/build/mobile"),
emptyOutDir: true,
})