@kengic/uni 0.7.7 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/script/cmd.mjs +5 -3
package/package.json
CHANGED
package/script/cmd.mjs
CHANGED
|
@@ -30,11 +30,13 @@ async function cmd() {
|
|
|
30
30
|
|
|
31
31
|
const targetDir = process.cwd() + '/android/app/src/main/assets/apps/__UNI__8B6E231/www';
|
|
32
32
|
log(`开始删除旧的目录 | ${targetDir}`);
|
|
33
|
-
fs.rmSync(targetDir);
|
|
33
|
+
fs.rmSync(targetDir, { force: true, recursive: true });
|
|
34
34
|
log(`完成删除旧的目录 | ${targetDir}`);
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
log(
|
|
36
|
+
const sourceDir = process.cwd() + '/dist/build/app';
|
|
37
|
+
log(`开始复制新的文件 | ${sourceDir}`);
|
|
38
|
+
fs.cpSync(sourceDir, targetDir, { recursive: true });
|
|
39
|
+
log(`完成复制新的文件 | ${sourceDir}`);
|
|
38
40
|
} catch (e) {
|
|
39
41
|
console.log(e);
|
|
40
42
|
}
|