Prefer usr/user-data for portable data
Rename and consolidate portable user-data to usr/user-data and update tooling and runtime to match. Updated appdir-example/run-nebula.sh to point at usr/user-data; make-appdir.sh and update-appdir.sh now patch/copy the launcher, create the usr/user-data directory and set secure permissions (mkdir -p, chmod 700), and remove sed backups. portable-data.js now defaults to app-local user-data and prefers <AppDir>/usr/user-data on Linux AppDir builds (with safe fs checks). Also minor UI change in renderer/setup.css to make the footer background transparent and disable the backdrop blur.
This commit is contained in:
@@ -84,6 +84,12 @@ done
|
||||
# Update main launcher scripts if present
|
||||
echo ""
|
||||
echo "🔄 Syncing launcher scripts..."
|
||||
if [ -f "$SCRIPT_DIR/appdir-example/run-nebula.sh" ]; then
|
||||
cp "$SCRIPT_DIR/appdir-example/run-nebula.sh" "$APPDIR_ROOT/run-nebula.sh"
|
||||
sed -i.bak 's|usr/data|usr/user-data|g' "$APPDIR_ROOT/run-nebula.sh" && rm -f "$APPDIR_ROOT/run-nebula.sh.bak"
|
||||
chmod +x "$APPDIR_ROOT/run-nebula.sh" || true
|
||||
echo " ✓ run-nebula.sh"
|
||||
fi
|
||||
for launcher in "Nebula-Desktop" "Nebula-Controller"; do
|
||||
if [ -f "$SCRIPT_DIR/nebula-appdir/$launcher" ]; then
|
||||
cp "$SCRIPT_DIR/nebula-appdir/$launcher" "$APPDIR_ROOT/$launcher"
|
||||
@@ -116,6 +122,11 @@ for dir in "${DIRS[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Ensure portable user-data directory exists for Linux AppDir builds
|
||||
mkdir -p "$APPDIR_ROOT/usr/user-data"
|
||||
chmod 700 "$APPDIR_ROOT/usr/user-data" || true
|
||||
echo " ✓ usr/user-data/"
|
||||
|
||||
echo ""
|
||||
echo "✅ AppDir updated successfully!"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user