Compare commits

...

1 Commits

Author SHA1 Message Date
a13e1a3ec0 Optmize file load func 2022-06-02 10:57:11 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@
"copy-package-json": "fse mkdirp ./bundle/ & node ./config/electron.forge.config.js --out ./bundle",
"copy-build-result": "fse mkdirp ./bundle/ & fse mkdirp ./build/ & fse copy ./build/ ./bundle/",
"copy-electron-icon": "fse mkdirp ./bundle/ & fse copy ./assets/living-together.ico ./bundle/living-together.ico & fse copy ./assets/living-together.icns ./bundle/living-together.icns",
"electron-app-ci": "cd ./bundle & npm install & cd ../",
"electron-app-ci": "cd ./bundle & set ELECTRON_SKIP_BINARY_DOWNLOAD=1& npm i & set ELECTRON_SKIP_BINARY_DOWNLOAD=& set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/& set ELECTRON_CUSTOM_DIR={{ version }}& node ./node_modules/electron/install.js & cd ../",
"gen-bundle": "fse emptyDir ./bundle/ & npm run copy-package-json & npm run copy-electron-icon & npm run electron-app-ci"
},
"keywords": [

View File

@ -183,6 +183,8 @@ class Status extends Emitter<IStatusEvent> {
this.setFocusObject(new Set());
this.setLabelObject();
this.setClipObject();
this.actuator.endPlay();
this.actuator.start(false);
// 映射
this.emit("fileLoad");