mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Generate AppImage package for GNU/Linux x86_64 (#345)
Fixes: https://github.com/resin-io/etcher/issues/323 Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
975c949fdf
commit
bc6e519964
6
Etcher.desktop
Normal file
6
Etcher.desktop
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Etcher
|
||||||
|
Exec=etcher
|
||||||
|
Description=Burn images to SD cards & USB drives, safe & easy.
|
||||||
|
Icon=icon
|
||||||
|
Type=Application
|
14
Makefile
14
Makefile
@ -54,6 +54,7 @@ etcher-release/Etcher-linux-x86: .
|
|||||||
--out=$(dir $@)
|
--out=$(dir $@)
|
||||||
mv $(dir $@)Etcher-linux-ia32 $@
|
mv $(dir $@)Etcher-linux-ia32 $@
|
||||||
mv $@/Etcher $@/etcher
|
mv $@/Etcher $@/etcher
|
||||||
|
chmod a+x $@/*.so*
|
||||||
upx -9 $@/etcher $@/libnode.so
|
upx -9 $@/etcher $@/libnode.so
|
||||||
|
|
||||||
etcher-release/Etcher-linux-x64: .
|
etcher-release/Etcher-linux-x64: .
|
||||||
@ -68,6 +69,7 @@ etcher-release/Etcher-linux-x64: .
|
|||||||
--overwrite \
|
--overwrite \
|
||||||
--out=$(dir $@)
|
--out=$(dir $@)
|
||||||
mv $@/Etcher $@/etcher
|
mv $@/Etcher $@/etcher
|
||||||
|
chmod a+x $@/*.so*
|
||||||
upx -9 $@/etcher $@/*.so*
|
upx -9 $@/etcher $@/*.so*
|
||||||
|
|
||||||
etcher-release/Etcher-win32-x86: .
|
etcher-release/Etcher-win32-x86: .
|
||||||
@ -203,6 +205,16 @@ etcher-release/installers/Etcher-linux-x86.tar.gz: etcher-release/Etcher-linux-x
|
|||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
tar -zcf $@ $<
|
tar -zcf $@ $<
|
||||||
|
|
||||||
|
etcher-release/installers/Etcher-linux-x64.AppImage: etcher-release/Etcher-linux-x64
|
||||||
|
mkdir -p $(dir $<)Etcher-linux-x64.AppDir/usr/bin
|
||||||
|
cp ./scripts/AppRun $(dir $<)Etcher-linux-x64.AppDir
|
||||||
|
chmod a+x $(dir $<)Etcher-linux-x64.AppDir/AppRun
|
||||||
|
cp ./Etcher.desktop $(dir $<)Etcher-linux-x64.AppDir
|
||||||
|
cp ./assets/icon.png $(dir $<)Etcher-linux-x64.AppDir
|
||||||
|
cp -rf $</* $(dir $<)Etcher-linux-x64.AppDir/usr/bin
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
./scripts/AppImageAssistant $(dir $<)Etcher-linux-x64.AppDir $@
|
||||||
|
|
||||||
etcher-release/installers/Etcher-win32-x64.exe: etcher-release/Etcher-win32-x64 package.json
|
etcher-release/installers/Etcher-win32-x64.exe: etcher-release/Etcher-win32-x64 package.json
|
||||||
$(ELECTRON_BUILDER) $< \
|
$(ELECTRON_BUILDER) $< \
|
||||||
--platform=win \
|
--platform=win \
|
||||||
@ -225,7 +237,7 @@ package-win32: etcher-release/Etcher-win32-x86 etcher-release/Etcher-win32-x64
|
|||||||
package-all: package-osx package-linux package-win32
|
package-all: package-osx package-linux package-win32
|
||||||
|
|
||||||
installer-osx: etcher-release/installers/Etcher-darwin-x64.dmg
|
installer-osx: etcher-release/installers/Etcher-darwin-x64.dmg
|
||||||
installer-linux: etcher-release/installers/Etcher-linux-x64.tar.gz etcher-release/installers/Etcher-linux-x86.tar.gz
|
installer-linux: etcher-release/installers/Etcher-linux-x64.tar.gz etcher-release/installers/Etcher-linux-x86.tar.gz etcher-release/installers/Etcher-linux-x64.AppImage
|
||||||
installer-win32: etcher-release/installers/Etcher-win32-x64.exe etcher-release/installers/Etcher-win32-x86.exe
|
installer-win32: etcher-release/installers/Etcher-win32-x64.exe etcher-release/installers/Etcher-win32-x86.exe
|
||||||
installer-all: installer-osx installer-linux installer-win32
|
installer-all: installer-osx installer-linux installer-win32
|
||||||
|
|
||||||
|
BIN
scripts/AppImageAssistant
Executable file
BIN
scripts/AppImageAssistant
Executable file
Binary file not shown.
BIN
scripts/AppRun
Executable file
BIN
scripts/AppRun
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user