Skip to content

Commit c0160d3

Browse files
authored
Update firefox-builder.sh
1 parent e1c5794 commit c0160d3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

firefox-builder.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,6 @@ Name[zh_CN]=新建隐私浏览窗口
356356
Name[zh_TW]=新增隱私視窗
357357
Exec=firefox --private-window %u"
358358

359-
POLICIES='{
360-
"policies": {
361-
"DisableAppUpdate": true
362-
}
363-
}'
364-
365359
_create_firefox_appimage() {
366360
# Detect the channel
367361
if [ "$CHANNEL" != stable ]; then
@@ -376,8 +370,7 @@ _create_firefox_appimage() {
376370
wget "$DOWNLOAD_URL" --trust-server-names || exit 1
377371
fi
378372
# Disable automatic updates
379-
mkdir -p "$APP".AppDir/distribution
380-
echo "$POLICIES" > "$APP".AppDir/distribution/policies.json
373+
touch "$APP".AppDir/is_packaged_app
381374
# Extract the archive
382375
[ -e ./*tar.* ] && tar fx ./*tar.* && mv ./firefox/* "$APP".AppDir/ && rm -f ./*tar.* || exit 1
383376
# Enter the AppDir

0 commit comments

Comments
 (0)