Skip to content
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

Fix windows version #520

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix windows version #520

wants to merge 2 commits into from

Conversation

celuchmarek
Copy link
Member

@celuchmarek celuchmarek commented Jan 23, 2025

No, ukázalo sa, že tie pathy pri assetoch na windowse nebudú ani za svet fungovať. Pôvodné riešenie v main branchi má problém, že Path.of() nevie spracovať string s dvojbodkami, čo vo Windowse bude vždy (C://nieco...). Na to som našiel iné riešenie, ale to zase fungovalo iba v developmente. Nakoniec to vyriešime tak, že máme whitelist súborov a mimetype zistíme podľa koncovky.

Keď som si už rozbehol dev prostredie na windowse (a viem aj buildovať installer!!!), pridal som desktop shortcut a zmenil som "description" packagu na "name", pretože to je to, čo sa ukazuje v prehlidači, keď ide user spúšťať Autogram z browsera. Predtým sa to usera pýtalo, či chce spsustiť aplikáciu "Opensource EIDAS compliant ...". Teraz tam bude že "Autogram".

@celuchmarek celuchmarek requested a review from a team as a code owner January 23, 2025 10:20
@celuchmarek celuchmarek changed the title use different method to parse assets path Fix windows version Jan 23, 2025
static {
assetsPath = Path.of(requireNonNull(AssetsEndpoint.class.getResource("index.html")).getPath()).getParent().resolve("assets");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto padalo ešte pri spustení appky. Keďže je to ale na takomto "static" mieste, exception sa nedal nikde chytiť a len to zobrazilo "Failed to load JVM".

Copy link
Member

@jsuchal jsuchal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vynikajuce!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants