New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone app doesn't work #2823
Comments
If I understood correctly, we need to fix the standalone builds. |
We might have different understandings when it comes to this: #2573 was about simplifying the build process for the standalone version. We used to have two types of builds: one for the web that caused different javascript code to be executed than in the standalone version. Now both builds are identical but we still have to be able to execute the standalone version properly. So if I understood this issue correct it's only about not being able to properly start the standalone version at the moment and that should definitely be the case. |
I see. Thanks for the clarification @BridgeAR. |
We require a desktop application that runs on any OS. The reason is mainly that Internet is not always available. |
But the web build doesn't require internet. And it works on all operating systems without any additional dependencies. Doesn't that already meet the requirements? Plus it's already available for every version we release link |
That's new to me, that the browser loads and executes JavaScript from file system, when opened from file system. It also works on my machine. I am not sure, if every request to the internet is enforced to be blocked. Is this relevant for a user, that he is 100% that no request is sent? On the other side a standalone app could also sent requests, couldn't it? If this approach is fine, it would save same maintenance for sure :) |
It is correct, that it works by loading the main file in a browser. Some computers that CC should run upon might not have a browser though. We just have to make sure we need nothing on a computer than CC to be run properly. What tool is used for it does not matter. Let's please look into what has broken in nw.js soon. It could be a breaking change in a recent version (that's what I would verify first). |
Okay, the fix for macOS worked, for Windows it still got problems. The packaging step reports this error:
(https://github.com/MaibornWolff/codecharta/runs/7002261326?check_suite_focus=true) |
Ich habe den nwjs Build unter Windows untersucht mit folgendem Ergebnis: Es läuft aktuell nicht, da der nwjs-builder-phoenix das Modul node-rcedit in einer sehr alten Version referenziert, die nur die 32-bit Version der "rcedit.exe" mitbringt. Daher läuft es in unserer 64-bit Buildpipeline nicht. Ein 32-bit kompatibles Wine dort zu installieren ist nicht trivial. Sinnvoller wäre es, die neuere node-rcedit zu nutzen, die unter 64-bit läuft. Mit folgendem snippet in der package.json kann ich zwar eine neuere node-rcedit erzwingen, allerdings läuft dann der builder nicht mehr durch, da sich das API von node-rcedit geändert hat:
Wir müssten also unsere eigene, angepasste Version von nwjs-builder-phoenix pflegen. Stattdessen würde ich empfehlen, erstmal das alternative Build-Tool nw-builder (https://github.com/nwutils/nw-builder) zu testen. Das ist zwar nur die zweite Wahl laut Doku (https://docs.nwjs.io/en/latest/For%20Users/Package%20and%20Distribute/), aber dafür deutlich aktueller (letztes Update 2022 statt 2018) - vielleicht ist die Doku veraltet. Es scheint auch ein sehr ähnliches Featureset zu haben. |
+1 on switching to nw-builder. |
* fix: switch to nw-builder issue #2823 * add changelog item * Change package expression to work with windows (admin privileges) * Change flavor from sdk to normal (production) * Remove cleanup-call (is now included in build-nwjs.js) * Remove test release entries * Remove zip option, add clean up of build and package dirs, change to bestzip for zip process * Refactor package process to be in one file * Remove old parts of package process, add zip for bestzip * refactor build-nwjs.js #2881 * refactor build-nwjs.js to avoid a void return as a promise #2881 * Update visualization/script/build-nwjs.js Co-authored-by: Cedrik Bormann <26900540+ce-bo@users.noreply.github.com> Co-authored-by: phanlezz <se.wo96@gmx.de> Co-authored-by: MW-Friedrich <108457762+MW-Friedrich@users.noreply.github.com> Co-authored-by: Cedrik Bormann <26900540+ce-bo@users.noreply.github.com>
Fixed by #2881 |
Currently the web package and the global npm install don't work of the visualization part. |
Would you please provide some More error details? |
After installing via The zip file of the -web version can't be extracted, because it is corrupted. Im already working on this second problem. |
* Change zip path to not contain a directory up order * Add entry for zip fix * Remove temporary test file #2823
Bug
Expected Behavior
Given a new version is released
When downloading the assets
Then we get executable for Windows, Mac and Linux.
Actual Behavior
See ci output of job "Build visualization" and available assets of release 1.96.0:
wine
in build image(codecharta-visualization:293): Pango-ERROR **: 17:54:03.066: Harfbuzz version too old (1.2.1)
Open questions
Harfbuzz
or out responsibility to use a not outdated version?Specifications
The text was updated successfully, but these errors were encountered: