no message

This commit is contained in:
kuaifan 2022-05-13 20:26:42 +08:00
parent bba34ef55e
commit 5e324c69b6
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "resources/drawio"]
path = resources/drawio
url = https://github.com/jgraph/drawio.git
[submodule "resources/mobile"]
path = resources/mobile
url = git@github.com:kuaifan/dootask-app.git

7
electron/build.js vendored
View File

@ -128,6 +128,7 @@ function startBuild(data, publish) {
indexString = indexString.replace(/<title>(.*?)<\/title>/g, `<title>${data.name}</title>`);
fs.writeFileSync(indexFile, indexString, 'utf8');
if (data.id === 'app') {
fse.copySync(electronDir, path.resolve(__dirname, "../resources/mobile/src/public"))
return;
}
// package.json Backup
@ -172,6 +173,12 @@ if (["dev"].includes(argv[2])) {
child_process.spawn("npx", ["mix", "watch", "--hot", "--", "--env", "--electron"], {stdio: "inherit"});
child_process.spawn("npm", ["run", "start-quiet"], {stdio: "inherit", cwd: "electron"});
} else if (["app"].includes(argv[2])) {
// 编译给app
let mobileSrcDir = path.resolve(__dirname, "../resources/mobile");
if (!fse.existsSync(mobileSrcDir)) {
console.log("mobile directory does not exist!");
process.exit()
}
let urlChoices = [];
Array.from(new Set(config.app.map(item => item.url))).forEach(url => {
urlChoices.push({

1
resources/mobile Submodule

@ -0,0 +1 @@
Subproject commit 7f05dc5d493079e42ba78739eba102cfddd15378