3 APP_DIR
="./build/installers/linux-unpacked";
5 ARCH
=`uname -m | tr -d '\n'`;
6 VER
=`cat ./build/installers/version`;
8 echo "ARCH: $ARCH, VER: $VER";
10 if [ $ARCH == "aarch64" ]; then
11 APP_DIR
="./build/installers/linux-arm64-unpacked";
14 echo "APP_DIR: $APP_DIR";
16 if [ ! -d "$APP_DIR" ]; then
17 echo "ERROR: It need run after electron-builder";
21 echo "$DESKTOP_FILE" > "$APP_DIR/figma-linux.desktop";
22 chmod a
+x
"./resources/AppRun"
23 cat "./resources/figma-linux-appimage.desktop" > "$APP_DIR/figma-linux.desktop";
24 cp -rf "./resources/AppRun" "$APP_DIR/AppRun";
25 cp -rf "./resources/icons/256x256.png" "$APP_DIR/figma-linux.png";
26 cp -rf "./resources/icons" "$APP_DIR/";
27 chmod a
+x
"$APP_DIR/AppRun"
28 chmod a
+x
"$APP_DIR/figma-linux"
29 chmod a
+x
"$APP_DIR/chrome-sandbox"
30 chmod a
+x
"$APP_DIR/*.sh"
34 appimagetool .
/ ..
/figma-linux-
${VER}_
${ARCH}.AppImage
--appimage-extract-and-run