ngtron
ngtron copied to clipboard
InvalidConfigurationError
Hi,
I am getting the folowing error on windows 10 :
Error InvalidConfigurationError: Build for macOS is supported only on macOS, please see https://electron.build/multi-platform-build
at C:\Users\cisse\angulardemo\angular-desktop\node_modules\app-builder-lib\src\packager.ts:408:15
at Generator.next (
You can just adjust the packagerConfig in your package target according to your needs.
Hi, Here is my package.json : { "name": "angular-desktop", "description": "Easily serve and build angular based electron applications", "author": { "name": "Benjamin Dobler", "email": "[email protected]", "url": "http://www.richapps.de" }, "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~8.2.14", "@angular/common": "~8.2.14", "@angular/compiler": "~8.2.14", "@angular/core": "~8.2.14", "@angular/forms": "~8.2.14", "@angular/platform-browser": "~8.2.14", "@angular/platform-browser-dynamic": "~8.2.14", "@angular/router": "~8.2.14", "@richapps/ngtron": "0.0.25", "rxjs": "~6.4.0", "tslib": "^1.10.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "~0.803.19", "@angular/cli": "~8.3.19", "@angular/compiler-cli": "~8.2.14", "@angular/language-service": "~8.2.14", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", "codelyzer": "^5.0.0", "electron": "^4.0.8", "electron-builder": "20.39.0", "electron-reloader": "^0.2.0", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.15.0", "typescript": "~3.5.3" } }
Thanks
On Sun, Dec 1, 2019 at 2:17 PM Benjamin Dobler [email protected] wrote:
You can just adjust the packagerConfig in your package target according to your needs.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BenjaminDobler/ngtron/issues/18?email_source=notifications&email_token=AAAVJCO7YYZ6AWYNDVHQ6G3QWQETPA5CNFSM4JTMK5UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFRSWSI#issuecomment-560147273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVJCMXE35KVD6LAFD7C6TQWQETPANCNFSM4JTMK5UA .
-- CISSE M. Y. Sofware/Web Developer Phone :(347) 443-9028
Hey, i mean in the angular.json the package target. There you will find a packagerConfig where you can set the typical electron builder configs. Just adjust them to package a windows only package.
Hi, I did comment out this part : "mac": [ "zip", "dmg" ], and it works. The only problem the screen is blank .
I am not getting something like this : [image: image.png]
Wonderful project . Thanks
On Mon, Dec 2, 2019 at 11:35 AM Benjamin Dobler [email protected] wrote:
Hey, i mean in the angular.json the package target. There you will find a packagerConfig where you can set the typical electron builder configs. Just adjust them to package a windows only package.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BenjaminDobler/ngtron/issues/18?email_source=notifications&email_token=AAAVJCPGDCBNH3ERFO4CFIDQWU2MXA5CNFSM4JTMK5UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUCS5A#issuecomment-560474484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVJCLTXSTWFPFXGO7ISO3QWU2MXANCNFSM4JTMK5UA .
-- CISSE M. Y. Sofware/Web Developer Phone :(347) 443-9028
Hi, The application is not loading index.html: win.loadURL(format({ pathname: join(__dirname, 'index.html'), protocol: 'file:', slashes: true })); Thanks
Hey Mohamed,
are you able to provide the project? Otherwise it will be difficult to tell what is going on.
Benjamin
Am Mi., 4. Dez. 2019 um 16:08 Uhr schrieb Mohamed Y. Cisse < [email protected]>:
Hi, The application is not loading index.html: win.loadURL(format({ pathname: join(__dirname, 'index.html'), protocol: 'file:', slashes: true })); Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BenjaminDobler/ngtron/issues/18?email_source=notifications&email_token=AAT5ZGM7U64M5ONGHNBQ3Y3QW7BXVA5CNFSM4JTMK5UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5KVKA#issuecomment-561687208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT5ZGNDGAAQCRCTZ2DDDSLQW7BXVANCNFSM4JTMK5UA .
Hi, Here is the project : Thanks for your help. desktop.zip https://drive.google.com/file/d/1CxPLdJqTh1IgIJlCdChnLFJB1Y1KTSqR/view?usp=drive_web
On Wed, Dec 4, 2019 at 11:13 AM Benjamin Dobler [email protected] wrote:
Hey Mohamed,
are you able to provide the project? Otherwise it will be difficult to tell what is going on.
Benjamin
Am Mi., 4. Dez. 2019 um 16:08 Uhr schrieb Mohamed Y. Cisse < [email protected]>:
Hi, The application is not loading index.html: win.loadURL(format({ pathname: join(__dirname, 'index.html'), protocol: 'file:', slashes: true })); Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/BenjaminDobler/ngtron/issues/18?email_source=notifications&email_token=AAT5ZGM7U64M5ONGHNBQ3Y3QW7BXVA5CNFSM4JTMK5UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5KVKA#issuecomment-561687208 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAT5ZGNDGAAQCRCTZ2DDDSLQW7BXVANCNFSM4JTMK5UA
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BenjaminDobler/ngtron/issues/18?email_source=notifications&email_token=AAAVJCMAI3KRDDG3OKLM7UTQW7JKPA5CNFSM4JTMK5UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5RT5I#issuecomment-561715701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVJCPRRSQOEMJ76RZFYDDQW7JKPANCNFSM4JTMK5UA .
-- CISSE M. Y. Sofware/Web Developer Phone :(347) 443-9028
https://drive.google.com/file/d/1CxPLdJqTh1IgIJlCdChnLFJB1Y1KTSqR/view?usp=sharing
Hey, please try to set the target option in your tsconfig.json to es5. I think electron does not play nicely with differential module loading introduced on NG8 (read more about it here at the bottom of the article: https://www.techiediaries.com/angular-electron/) Let me know if that helps
Hi That works. My dream now is to be able to deploy ngtron on raspberry pi (raspbian). Thanks