@fto-consult/expo-ui 7.5.41 → 7.5.42
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/electron/index.js +3 -2
- package/package.json +2 -1
package/electron/index.js
CHANGED
@@ -31,6 +31,7 @@ const isAsar = (typeof require.main =="string" && require.main ||"").indexOf('ap
|
|
31
31
|
const distPath = path.join("dist",'index.html');
|
32
32
|
|
33
33
|
const processCWD = process.cwd();
|
34
|
+
const appPath = app.getAppPath();
|
34
35
|
const asarPath = path.resolve(processCWD,"resources","app.asar");
|
35
36
|
const electronProjectRoot = mainProjectRoot && typeof mainProjectRoot =='string' && fs.existsSync(path.resolve(mainProjectRoot)) && fs.existsSync(path.resolve(mainProjectRoot,distPath)) && path.resolve(mainProjectRoot) || null;
|
36
37
|
const projectRoot = electronProjectRoot || fs.existsSync(path.resolve(processCWD,"electron")) && fs.existsSync(path.resolve(processCWD,"electron",distPath)) && path.resolve(processCWD,"electron")
|
@@ -54,8 +55,8 @@ const mainProcess = mainProcessRequired && typeof mainProcessRequired =='object'
|
|
54
55
|
const execPath = app.getPath ('exe') || process.execPath;
|
55
56
|
|
56
57
|
// Gardez une reference globale de l'objet window, si vous ne le faites pas, la fenetre sera
|
57
|
-
if(!isValidUrl(pUrl) && !fs.existsSync(indexFilePath)){
|
58
|
-
throw {message:`Unable to start the application: index file located at [${indexFilePath}] does not exists : projectRoot = [${projectRoot}], exec path is ${execPath}`}
|
58
|
+
if(true || !isValidUrl(pUrl) && !fs.existsSync(indexFilePath)){
|
59
|
+
throw {message:`Unable to start the application: index file located at [${indexFilePath}] does not exists : appPath = [${appPath}] projectRoot = [${projectRoot}], exec path is ${execPath}`}
|
59
60
|
}
|
60
61
|
|
61
62
|
const quit = ()=>{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "7.5.
|
3
|
+
"version": "7.5.42",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -44,6 +44,7 @@
|
|
44
44
|
"test-bin": "node ./bin/index.js",
|
45
45
|
"update-appexchart": "npm run update-apexchart",
|
46
46
|
"delete-node-modules": "rimraf ./**/node_modules",
|
47
|
+
"extract-asar" : "npx @electron/asar extract app.asar <destfolder>",
|
47
48
|
"dev": "npx expo start --no-dev --minify -c",
|
48
49
|
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
49
50
|
"update": "npm i pdfmake@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run update-pdfmake && npm run find-licenses"
|