mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: distribute AppImage inside a zip (#772)
AppImages need to be marked as executables before they can be used. Distributing them directly means that virtually all web browsers will automatically remove the execution permissions, leading us to have to explain users how to add it back with `chmod`, etc. For simplicity purposes, we'll be distributing AppImages inside ZIPs, which ensure the execution permissions are added back when the user decompresses it. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
b6314bf397
commit
63948874d7
@ -156,6 +156,12 @@ function installer {
|
||||
app_dir_create $source_directory $architecture $appdir_temporary_location
|
||||
rm -f $output_file
|
||||
./scripts/build/AppImages/AppImageAssistant-$architecture $appdir_temporary_location $output_file
|
||||
|
||||
pushd $output_directory
|
||||
zip Etcher-linux-$architecture.zip Etcher-linux-$architecture.AppImage
|
||||
rm Etcher-linux-$architecture.AppImage
|
||||
popd
|
||||
|
||||
rm -rf $appdir_temporary_location
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user