slovensko-digital / autogram

Nový, krajší a lepší nástroj na podpisovanie.
European Union Public License 1.2
109 stars 20 forks source link

Refactor packaging script #260

Closed Bombino1024 closed 1 year ago

Bombino1024 commented 1 year ago

Refactor packaging script to build two msi installers (gui and cli) on windows

Bombino1024 commented 1 year ago

@jsuchal @celuchmarek neviem assignut reviewerov

celuchmarek commented 1 year ago

@Bombino1024 pozeral si flag --add-launcher? Napr tu.

A potom v nejakej oracle dokumentácii píšu: :thinking:

Add a launcher to start the Windows console.

To provide the user with the option of running your application with or without the
console, create the following properties file that defines a launcher that uses the
Windows console.

MLConsole.properties:
win-console=true

The following command packages the HelloWorld application with an additional
launcher that runs the application with the Windows console.

jpackage --name HelloWorld --input helloworld \
 --main-jar HelloWorld.jar \
 --add-launcher HWConsole=MLConsole.properties 
Bombino1024 commented 1 year ago

@celuchmarek mal si pravdu, teraz sa pri builde vytvori 1 .msi installer, ktory nainstaluje 2 .exe subory (Autogram.exe a Autogram-cli.exe) a funguju ako maju.

jsuchal commented 1 year ago

@celuchmarek tu este upravme readme alebo dokumentaciu kde treba aby bolo jasne ze pre win sa cli pusta inak

celuchmarek commented 1 year ago

@jsuchal tuto sa nepodarilo spraviť package. Mergneme do mainu a zbuildíme, aby sme potom otestovali na Windowse?

jsuchal commented 1 year ago

Ano skusme tak.