diff --git a/.env b/.env index e6a3736..8f91f39 100644 --- a/.env +++ b/.env @@ -14,4 +14,12 @@ VITE_GLOB_APP_PWA=false -VITE_APP_VERSION=20240319 \ No newline at end of file + + + + + + + + +VITE_APP_VERSION=20240408 \ No newline at end of file diff --git a/LICENSE b/LICENSE index a75cc00..3c5069e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 红烧猎人 +Copyright (c) 2023 wintsa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/copy-static-files.js b/copy-static-files.js new file mode 100644 index 0000000..d66620d --- /dev/null +++ b/copy-static-files.js @@ -0,0 +1,17 @@ +const fs = require('fs-extra'); +const path = require('path'); + +const sourceDir = path.join(__dirname, 'dist'); +const targetDir = path.join(__dirname, './service/web'); + +// 检查目标目录是否存在 +if (!fs.existsSync(targetDir)) { + fs.emptyDirSync(targetDir); // 如果不存在,创建一个空目录 +} + +try { + fs.copySync(sourceDir, targetDir); + console.log('Files copied successfully!'); +} catch (err) { + console.error('Error copying files:', err); +} \ No newline at end of file diff --git a/index.html b/index.html index ea1d7e7..b5df1c7 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ -