@fto-consult/expo-ui 7.5.31 → 7.5.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.
@@ -10,10 +10,10 @@ module.exports = ({electronProjectRoot,force,logo,appName})=>{
|
|
10
10
|
const indexPath = path.resolve(electronProjectRoot,"index.js");
|
11
11
|
if(true || !fs.existsSync(indexPath) || force === true){
|
12
12
|
writeFile(indexPath,`
|
13
|
-
|
13
|
+
require("${packageJSON.name}/electron/index.js")({
|
14
14
|
projectRoot : __dirname,
|
15
15
|
appName : "${appName}",
|
16
|
-
logo : ${logo
|
16
|
+
logo : ${logo ? `"${logo}"` : undefined},
|
17
17
|
})
|
18
18
|
`);
|
19
19
|
}
|
@@ -30,7 +30,7 @@ module.exports = function(mainOptions){
|
|
30
30
|
mainProcessRef.current = mainProcess;
|
31
31
|
// Gardez une reference globale de l'objet window, si vous ne le faites pas, la fenetre sera
|
32
32
|
|
33
|
-
if(
|
33
|
+
if(!isValidUrl(pUrl) && !fs.existsSync(indexFilePath)){
|
34
34
|
throw `Unable to start the application: index file located at [${indexFilePath}] does not exists : projectRoot = [${projectRoot}], isAsar:[${require.main}]`
|
35
35
|
}
|
36
36
|
|