mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-11 16:28:11 +00:00
no message
This commit is contained in:
parent
bba34ef55e
commit
5e324c69b6
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -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
7
electron/build.js
vendored
@ -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
1
resources/mobile
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 7f05dc5d493079e42ba78739eba102cfddd15378
|
||||
Loading…
x
Reference in New Issue
Block a user