chore: add appimage command to GNU/Linux build script

With this addition, the `package` command simply creates a standalone package, while "appimage" is the one that creates the actual AppImage. The "all" command still generates the AppImage as before.
This commit is contained in:
David Lechner 2016-09-30 09:09:47 -05:00 committed by Juan Cruz Viotti
parent e47a70606c
commit 6fedc9eb83

View File

@ -48,7 +48,7 @@ if [ "$#" -ne 2 ]; then
fi fi
COMMAND=$1 COMMAND=$1
if [ "$COMMAND" != "install" ] && [ "$COMMAND" != "package" ] && [ "$COMMAND" != "all" ]; then if [ "$COMMAND" != "install" ] && [ "$COMMAND" != "package" ] && [ "$COMMAND" != "appimage" ] && [ "$COMMAND" != "all" ]; then
echo "Unknown command: $COMMAND" 1>&2 echo "Unknown command: $COMMAND" 1>&2
exit 1 exit 1
fi fi
@ -174,7 +174,8 @@ if [ "$COMMAND" == "package" ] || [ "$COMMAND" == "all" ]; then
if [ "$ARCH" == "x64" ]; then if [ "$ARCH" == "x64" ]; then
package_x64 etcher-release package_x64 etcher-release
fi fi
installer etcher-release/Etcher-linux-$ARCH $ARCH etcher-release/installers
fi fi
if [ "$COMMAND" == "appimage" ] || [ "$COMMAND" == "all" ]; then
installer etcher-release/Etcher-linux-$ARCH $ARCH etcher-release/installers
fi