sormuras / bach-demo-javafx

⭐ Bach + JavaFX
https://github.com/sormuras/bach
MIT License
3 stars 0 forks source link

Get installer generated by jpackage running on MacOS and Linux #1

Open sormuras opened 3 years ago

sormuras commented 3 years ago

https://github.com/sormuras/bach-javafx/blob/abc62f5cdafbf6ce804af4019b9f19223bb01d50/.github/workflows/build.yml#L34-L40

Apply steps mentioned in: https://blogs.oracle.com/jtc/make-your-own-msi-and-rpm%2c-deb-dmg-with-jdk14

MacOS

Fails with: code has no resources but signature indicates they must be present

Linux

Not tested, yet...

Windows

Works. With warnings (and German texts), but it works.

image

aepfli commented 3 years ago

image

it requested sudo to install, and also sudo to run.

Installation command: sudo dpkg -i bach+fx_1.0-1_amd64.deb

for execution

cd /opt/bach+fx
sudo bin/bach+fx

Sidenotes:

/opt/bach+fx/bin: bach+fx

/opt/bach+fx/lib: app bach+fx.png runtime

/opt/bach+fx/lib/app: bach+fx.cfg

/opt/bach+fx/lib/runtime: bin conf legal lib release

/opt/bach+fx/lib/runtime/bin: bach-javafx java keytool

/opt/bach+fx/lib/runtime/conf: net.properties sdp security sound.properties

/opt/bach+fx/lib/runtime/conf/sdp: sdp.conf.template

/opt/bach+fx/lib/runtime/conf/security: java.policy java.security policy

/opt/bach+fx/lib/runtime/conf/security/policy: limited README.txt unlimited

/opt/bach+fx/lib/runtime/conf/security/policy/limited: default_local.policy default_US_export.policy exempt_local.policy

/opt/bach+fx/lib/runtime/conf/security/policy/unlimited: default_local.policy default_US_export.policy

/opt/bach+fx/lib/runtime/legal: java.base java.datatransfer java.desktop java.prefs java.xml jdk.unsupported

/opt/bach+fx/lib/runtime/legal/java.base: ADDITIONAL_LICENSE_INFO aes.md asm.md ASSEMBLY_EXCEPTION cldr.md c-libutl.md icu.md LICENSE public_suffix.md unicode.md

/opt/bach+fx/lib/runtime/legal/java.datatransfer: ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION LICENSE

/opt/bach+fx/lib/runtime/legal/java.desktop: ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION colorimaging.md freetype.md giflib.md harfbuzz.md jpeg.md lcms.md libpng.md LICENSE mesa3d.md xwd.md

/opt/bach+fx/lib/runtime/legal/java.prefs: ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION LICENSE

/opt/bach+fx/lib/runtime/legal/java.xml: ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION bcel.md dom.md jcup.md LICENSE xalan.md xerces.md

/opt/bach+fx/lib/runtime/legal/jdk.unsupported: ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION LICENSE

/opt/bach+fx/lib/runtime/lib: classlist jvm.cfg libfontmanager.so libjava.so libjsig.so libnet.so libverify.so psfont.properties.ja jexec libawt_headless.so libfreetype.so libjawt.so libjsound.so libnio.so libzip.so security jrt-fs.jar libawt.so libharfbuzz.so libjimage.so liblcms.so libprefs.so modules server jspawnhelper libawt_xawt.so libjavajpeg.so libjli.so libmlib_image.so libsplashscreen.so psfontj2d.properties tzdb.dat

/opt/bach+fx/lib/runtime/lib/security: blacklisted.certs cacerts default.policy public_suffix_list.dat

/opt/bach+fx/lib/runtime/lib/server: libjsig.so libjvm.so

/opt/bach+fx/share: doc

/opt/bach+fx/share/doc: copyright

sormuras commented 3 years ago

Thanks for test-driving the Linux installer, @aepfli!

aepfli commented 3 years ago

image newest build without sudo

sormuras commented 3 years ago

🤔 ... did I change something that made the application run w/o sudo?!

aepfli commented 3 years ago

hmm, seems like not - looks like there was again a a problem in front of the pc.

I uninstalled newer build, and reinstalled the old build - and it is now working without sudo as long as i am in the directory, but the install directory is also added to the path, and based on that, there is something going on, locally i am not sure what.

BUT good news, it runs without sudo!

Bad news, i have no clue why i get permission denied :D :D :D :D :D

image