Skip to content

An open-source cross-platform alternative to AirDrop

chore: add linux script

Tien Do Namdaa7926837ee
diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml
new file mode 100644
index 00000000..6f2a4dfa
--- /dev/null
+++ b/AppImageBuilder.yml
@@ -0,0 +1,56 @@
+# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
+version: 1
+AppDir:
+ path: AppDir
+ app_info:
+ id: org.localsend.localsend_app
+ name: LocalSend
+ icon: application-vnd.appimage
+ version: latest
+ exec: localsend_app
+ exec_args: $@
+ apt:
+ arch:
+ - amd64
+ allow_unauthenticated: true
+ sources:
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy main restricted
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy universe
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy-updates universe
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy multiverse
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
+ - sourceline: deb http://de.archive.ubuntu.com/ubuntu/ jammy-backports main restricted
+ universe multiverse
+ - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security main restricted
+ - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security universe
+ - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security multiverse
+ include:
+ - libc6:amd64
+ files:
+ include: []
+ exclude:
+ - usr/share/man
+ - usr/share/doc/*/README.*
+ - usr/share/doc/*/changelog.*
+ - usr/share/doc/*/NEWS.*
+ - usr/share/doc/*/TODO.*
+ test:
+ fedora-30:
+ image: appimagecrafters/tests-env:fedora-30
+ command: ./AppRun
+ debian-stable:
+ image: appimagecrafters/tests-env:debian-stable
+ command: ./AppRun
+ archlinux-latest:
+ image: appimagecrafters/tests-env:archlinux-latest
+ command: ./AppRun
+ centos-7:
+ image: appimagecrafters/tests-env:centos-7
+ command: ./AppRun
+ ubuntu-xenial:
+ image: appimagecrafters/tests-env:ubuntu-xenial
+ command: ./AppRun
+AppImage:
+ arch: x86_64
+ update-information: guess
diff --git a/scripts/compile_linux_appbundle.sh b/scripts/compile_linux_appbundle.sh
new file mode 100644
index 00000000..f40ce6dc
--- /dev/null
+++ b/scripts/compile_linux_appbundle.sh
@@ -0,0 +1,15 @@
+fvm flutter clean
+fvm flutter pub get
+fvm flutter pub run build_runner build -d
+fvm flutter build linux
+
+rm -rf AppDir
+rm -rf appimage-build
+
+mkdir AppDir
+cp -r build/linux/x64/release/bundle/* AppDir
+appimage-builder
+sudo chmod +x LocalSend-latest-x86_64.AppImage
+
+rm -rf AppDir
+rm -rf appimage-build