It has been built because: * nvchecker detects the following updates: aur(0): 3.12.1-1 -> 4.0.1-1
22 lines
525 B
Bash
Executable file
22 lines
525 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Usage:
|
|
# ./start.sh
|
|
# Later you can replace __ROOT_DIR__ and __ELECTRON__ using sed
|
|
|
|
root_dir="__ROOT_DIR__"
|
|
electron_bin="__ELECTRON__"
|
|
|
|
# Make sure app.asar exists
|
|
if [ ! -f "$root_dir/app/app.asar" ]; then
|
|
echo "Error: app.asar not found under $root_dir/app"
|
|
exit 1
|
|
fi
|
|
|
|
# Tell electron-updater: this is running inside AppImage
|
|
export APPIMAGE=1
|
|
|
|
# Run
|
|
echo "Starting Electron app (root directory = $root_dir)"
|
|
ELECTRON_FORCE_IS_PACKAGED=true "$electron_bin" "$root_dir/app/app.asar" --no-sandbox "$@"
|