@fto-consult/expo-ui 7.4.32 → 7.4.33
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/bin/index.js +3 -3
- package/electron/init/main.js +4 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
@@ -50,13 +50,13 @@ program.command('electron')
|
|
50
50
|
//.option('-s, --splash [dir]', 'le chemin (relatif au project root) du fichier du splash screen de l\'application')
|
51
51
|
.option('-o, --out [dir]', 'le chemin (relatif au project root) du répertoire qui contiendra les fichiers build')
|
52
52
|
.option('-u, --url [url]', 'le lien url qui sera ouvert par l\'application')
|
53
|
-
.option('-
|
53
|
+
.option('-b, --build [boolean]', 'si ce flag est spécfifié alors l\'application sera compilée')
|
54
54
|
.option('-a, --arch [architecture]', 'l\'architecture de la plateforme')
|
55
55
|
.option('-p, --platform [platform]', 'la plateforme à utiliser pour la compilation')
|
56
56
|
.action((script, options) => {
|
57
57
|
const electronProjectRoot = path.resolve(projectRoot,"electron");
|
58
58
|
const opts = Object.assign({},typeof options.opts =='function'? options.opts() : options);
|
59
|
-
let {out,arch,url,
|
59
|
+
let {out,arch,url,build,platform} = opts;
|
60
60
|
//let {projectRoot} = opts;
|
61
61
|
if(projectRoot == dir){
|
62
62
|
throwError(`Invalid project root ${projectRoot}; project root must be different to ${dir}`);
|
@@ -143,7 +143,7 @@ program.command('electron')
|
|
143
143
|
reject("dossier web-build exporté par electron innexistant!!");
|
144
144
|
}
|
145
145
|
}
|
146
|
-
if(!url && (
|
146
|
+
if(!url && (build || script ==="build" || !fs.existsSync(path.resolve(webBuildDir,"index.html")))){
|
147
147
|
console.log("exporting expo web app ...");
|
148
148
|
try {
|
149
149
|
writeFile(packagePath,JSON.stringify({...packageObj,homepage:"./"},null,"\t"));
|
package/electron/init/main.js
CHANGED
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
module.exports = {
|
11
11
|
/*****
|
12
|
-
|
13
|
-
width: 500, height: 400, transparent: true, frame: false,
|
14
|
-
|
12
|
+
must return an Instance of Browser window
|
13
|
+
width: 500, height: 400, transparent: true, frame: false, alwaysOnTop: true
|
14
|
+
@param {width{number|500},{height{number|400}},transparent{boolean|true}, frame{boolean|false}, alwaysOnTop{boolean|true}}
|
15
|
+
@return {InstanceOf(BrowserWindow)}
|
15
16
|
*/
|
16
17
|
splashScreen : function({width, height, transparent, frame, alwaysOnTop}){
|
17
18
|
return null;
|