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

Chybna detekcia poslednej verzie #173

Closed
kiblik opened this issue May 4, 2023 · 10 comments
Closed

Chybna detekcia poslednej verzie #173

kiblik opened this issue May 4, 2023 · 10 comments
Assignees

Comments

@kiblik
Copy link

kiblik commented May 4, 2023

Napriek tomu, ze som nainstaloval Autogram z https://github.com/slovensko-digital/autogram/releases/latest, hned pri prvom starte mi hlasil, ze na GH je aktualnejsia verzia.

image

MacOS: 13.3.1
Autogram: 1.99.9

@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

@celuchmarek vies kuknut?

@celuchmarek
Copy link
Member

Jo. Mám podozrenie, že to bude tým "v" na začiatku tagu .

@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

@celuchmarek jo to bude asi ono.

@jsuchal jsuchal assigned jsuchal and celuchmarek and unassigned jsuchal May 5, 2023
@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

uz smerujeme na spravny tag ale stale to hadze ten update.

@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

Vyzera to tak, ze nas manifest neobsahuje meno package Name: a teda toto vlastne nemoze uplne fungovat. Neviem to tam uplne dostat.

@1azyman @sabomichal ?

@kiblik
Copy link
Author

kiblik commented May 5, 2023

Videl som, ze na urcitenie verzie sa pouziva citanie headeru z redirectu pri pristupe na

public static final String LATEST_RELEASE_URL = "https://github.com/slovensko-digital/autogram/releases/latest";

Nebolo by lepsie vyuzit API?

$ curl https://api.github.com/repos/slovensko-digital/autogram/releases/latest 2>/dev/null | jq '.tag_name'
"1.99.9"
$ curl https://api.github.com/repos/slovensko-digital/autogram/releases/latest 2>/dev/null | jq '.name'
"v1.99.9"

@1azyman
Copy link
Contributor

1azyman commented May 5, 2023

https://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html

pom.xml okolo riadku 207 su entries co idu do manifestu. Nie som teraz moc zorientovany. Aku hodnotu tam treba?

@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

Vyzera, ze najlahsie to bude proste cez toto https://stackoverflow.com/questions/66759345/simplest-way-to-query-cfg-file-created-by-jpackage

System.getProperty("jpackage.app-version") vyzera, ze sa app to spusta s tymto. minimalne na windows

@sabomichal
Copy link
Contributor

manifest vies upravit cez maven-jar-plugin konfiguraciu. Mozes si tam pridat cokolvek potrebujes.

https://maven.apache.org/shared/maven-archiver/index.html

@jsuchal
Copy link
Member

jsuchal commented May 5, 2023

@kiblik ano api je asi stabilnejsie na taketo ucely. @celuchmarek vies toto kuknut pripadne ako separe PR?

@jsuchal jsuchal closed this as completed in 452fb87 May 5, 2023
jsuchal added a commit that referenced this issue May 5, 2023
@kiblik kiblik changed the title Chybna detegcia poslednej verzie Chybna detekcia poslednej verzie May 5, 2023
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

No branches or pull requests

5 participants