image-shrinker icon indicating copy to clipboard operation
image-shrinker copied to clipboard

[Linux] APPIMAGE env is not defined, current application is not an AppImage

Open majamee opened this issue 6 years ago • 4 comments

On Linux (Arch, 64bit) the app opens with a blank page and calling it from terminal it prints the following error: APPIMAGE env is not defined, current application is not an AppImage

Would be great to see this fixed. :)

majamee avatar Feb 17 '19 03:02 majamee

@jancborchardt do you have an idea?

stefansl avatar Feb 21 '19 21:02 stefansl

Unfortunately no idea as I’m also not very experienced with the building process. :\ It works fine here with Ubuntu 64 bit. @majamee could you clone the repository and build the app on your computer to test if that works? https://github.com/stefansl/image-shrinker#build-your-own

jancborchardt avatar Feb 22 '19 11:02 jancborchardt

Unfortunately this does not seem to help, followed the instructions closely and here is the output ending in the same issue (first commands cut-off, but went through without issue just warning about a few vulnerabilities in the npm dependencies): npm run pack-linux

[email protected] pack-linux /home/majamee/#Apps/image-shrinker electron-packager . 'Image Shrinker' --platform=linux --arch=x64 --ignore=/^release/i --icon=assets/icons/png/512x512 --overwrite

Packaging app for platform linux x64 using electron v4.0.5 Wrote new app to /home/majamee/#Apps/image-shrinker/Image Shrinker-linux-x64 [majamee@gh0st image-shrinker]$ cd /home/majamee/#Apps/image-shrinker/Image\ Shrinker-linux-x64/ [majamee@gh0st Image Shrinker-linux-x64]$ ls chrome_100_percent.pak libGLESv2.so resources chrome_200_percent.pak libVkICD_mock_icd.so resources.pak icudtl.dat LICENSE snapshot_blob.bin 'Image Shrinker' LICENSES.chromium.html swiftshader libEGL.so locales v8_context_snapshot.bin libffmpeg.so natives_blob.bin version [majamee@gh0st Image Shrinker-linux-x64]$ ./Image\ Shrinker 18:44:07.211 › App starting... 18:44:07.411 › APPIMAGE env is not defined, current application is not an AppImage

majamee avatar Feb 22 '19 17:02 majamee

You could try the electron-builder. Just run npm run build-linux. But I guess, I have to adjust some settings in package.json: https://www.electron.build/configuration/linux

stefansl avatar Nov 07 '19 23:11 stefansl