spacedrive/scripts
Vítor Vasconcellos 556ddbd4f8
Port AppImage build to use appimage-builder (#1785)
* Initial port to appimage-builder

* Almost

* Fix appimage build on arm64

* Custom patch for external binaries run under appimage
 - Disable bubblewrap sandbox when running under appimage
 - Change cwd to APPDIR when running under appimage

* AppImage Works (for the first lunch, then it crashes with Stack Smash 😭)

* Fix stack smashing, now AppImage almos fully works \o/ (gstreamer is still broken)
 - Temporarily disable the volume watcher when running under appimage (Workaround for the stack smash error)
 - Wrap gnu lic version check for appimage under conditional compile for glibc targets
 - Add error handling for the justUpdatedCheck
 - Fix VITE_LANDING_ORIGIN being undefined

* On non glibc systems default to runtime/compat

* Use glibc version 2.8 instead of 0 for non-gnu systems

* Fix video playback not working due to broken GstRegistry

* Build and publish new AppImage release artifact
 - Fix model location when building deb
 - Improve model path resolution logic
 - Remove patchelf dependency from setup script
 - Fix incorrectly ignore gstreamer dependency in AppImage recipe

* Fix clippy complaining about `get_path_relative_to_exe`
 - Read GLIBC_FAKE_VERSION or use 2.8 for musl in appimage (while the code is there, this is not really supported for now)

* Remove appimage tauri target from release CI

* Remove setup-buildx-action, not relly needed

* typo fix

* Fix git describe command running on cwd instead of the repo root dir

* Attempt fix weird git permissions errors in CI+docker

* Pass CI env to docker appimage

* Only use git after installing it

* Pass target to appimage build script

* Fix permission after creating appimage

* -_-

* Swap envvar with github ci var

* Format

* Add instruction on how to manually build an AppImage

* Fix typos

* docs: add note about running podman with `--privileged` if there's a permission denied error

* docs: fix typo and link directly to appimage-building `README.md`

* refactor: streamline code and make it a bit cleaner

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2024-01-22 10:52:26 +00:00
..
appimage Port AppImage build to use appimage-builder (#1785) 2024-01-22 10:52:26 +00:00
utils [ENG-1479] AI Prototype (#1845) 2023-12-19 09:28:57 +00:00
.eslintrc.cjs [ENG-927, ENG-735, ENG-766] Fix Updater & Tauri 1.5 (#1361) 2023-10-10 07:30:56 +00:00
.gitignore [ENG-927, ENG-735, ENG-766] Fix Updater & Tauri 1.5 (#1361) 2023-10-10 07:30:56 +00:00
fix-deb.sh [ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes) (#1685) 2023-11-17 19:20:14 +00:00
package.json Fix pnpm prep on Linux (#1904) 2023-12-20 09:12:49 +00:00
preprep.mjs [ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes) (#1685) 2023-11-17 19:20:14 +00:00
setup.ps1 Fix Windows CI (#1695) 2023-10-29 00:25:26 +00:00
setup.sh Port AppImage build to use appimage-builder (#1785) 2024-01-22 10:52:26 +00:00
tauri.mjs [ENG-1479] AI Prototype (#1845) 2023-12-19 09:28:57 +00:00
tsconfig.json [ENG-927, ENG-735, ENG-766] Fix Updater & Tauri 1.5 (#1361) 2023-10-10 07:30:56 +00:00