chore: Update Zen Browser configuration files, icons, and metainfo
|
@ -1,66 +0,0 @@
|
|||
app-id: com.zen.browser
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '22.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
base: org.mozilla.firefox.BaseApp
|
||||
base-version: '22.08'
|
||||
command: launch-script.sh
|
||||
finish-args:
|
||||
- --share=ipc
|
||||
- --share=network
|
||||
- --env=GTK_PATH=/app/lib/gtkmodules
|
||||
- --socket=pulseaudio
|
||||
- --socket=wayland
|
||||
- --socket=x11
|
||||
- --socket=pcsc
|
||||
- --socket=cups
|
||||
- --persist=.zen
|
||||
- --filesystem=xdg-download:rw
|
||||
- --device=all
|
||||
- --talk-name=org.freedesktop.FileManager1
|
||||
- --system-talk-name=org.freedesktop.NetworkManager
|
||||
- --talk-name=org.a11y.Bus
|
||||
- --talk-name=org.gnome.SessionManager
|
||||
- --talk-name=org.freedesktop.ScreenSaver
|
||||
- --talk-name=org.freedesktop.Notifications
|
||||
- --own-name=com.zen.browser.*
|
||||
modules:
|
||||
- name: zen_browser
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- tar -xvf zen.linux.tar.bz2
|
||||
- mv zen/ bin/
|
||||
|
||||
- install -d /app/bin
|
||||
- install -d /app/bin/distribution
|
||||
- install -d /app/share/icons
|
||||
- install -d /app/share/metainfo
|
||||
- install -d /app/share/applications
|
||||
|
||||
- cp -r bin/* /app/bin
|
||||
- cp -r icons/* /app/share/icons
|
||||
- cp launch-script.sh /app/bin/launch-script.sh
|
||||
- cp -r policies.json /app/bin/distribution/policies.json
|
||||
|
||||
- cp com.zen.browser.metainfo.xml /app/share/metainfo/com.zen.browser.metainfo.xml
|
||||
- cp com.zen.browser.desktop /app/share/applications/com.zen.browser.desktop
|
||||
|
||||
- chmod +x /app/bin/launch-script.sh
|
||||
sources:
|
||||
- type: file
|
||||
path: ./zen.linux.tar.bz2
|
||||
|
||||
- type: file
|
||||
path: ./policies.json
|
||||
|
||||
- type: file
|
||||
path: ./launch-script.sh
|
||||
|
||||
- type: file
|
||||
path: ./com.zen.browser.metainfo.xml
|
||||
- type: file
|
||||
path: ./com.zen.browser.desktop
|
||||
|
||||
- type: dir
|
||||
path: ./icons/
|
||||
dest: icons
|
3
flathub.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"skip-arches": ["aarch64"]
|
||||
}
|
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |
|
@ -6,6 +6,6 @@ Name=Zen Browser
|
|||
Comment=Zen Browser. Your browser, your way.
|
||||
Categories=Network;WebBrowser;
|
||||
|
||||
Icon=com.zen.browser
|
||||
Exec=/app/bin/launch-script.sh
|
||||
Icon=io.github.zen_browser.desktop
|
||||
Exec=launch-script.sh
|
||||
Terminal=false
|
|
@ -1,9 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>com.zen.browser</id>
|
||||
<id>io.github.zen_browser.desktop</id>
|
||||
<url type="homepage">https://get-zen.vercel.app</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<developer id="io.github.zen_browser.desktop">
|
||||
<name>Zen Team</name>
|
||||
</developer>
|
||||
|
||||
<name>Zen Browser</name>
|
||||
<summary>Zen Browser. youur browser, your way!</summary>
|
||||
<summary>Zen Browser. your browser, your way!</summary>
|
||||
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>MPL-2.0</project_license>
|
||||
|
@ -21,7 +26,17 @@
|
|||
</ul>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">com.zen.browser.desktop</launchable>
|
||||
<releases>
|
||||
<release version="1.0.0-a.7" date="2024-07-27">
|
||||
<url type="details">https://get-zen.vercel.app/release-notes/1.0.0-a.7</url>
|
||||
</release>
|
||||
</releases>
|
||||
|
||||
<provides>
|
||||
<id>io.github.zen_browser.desktop</id>
|
||||
</provides>
|
||||
|
||||
<launchable type="desktop-id">io.github.zen_browser.desktop.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://get-zen.vercel.app/browser-dark.png</image>
|
||||
|
@ -30,4 +45,9 @@
|
|||
<image>https://get-zen.vercel.app/browser-light.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
|
||||
<branding>
|
||||
<color type="primary" scheme_preference="light">#d9d9d9</color>
|
||||
<color type="primary" scheme_preference="dark">#f5f5f5</color>
|
||||
</branding>
|
||||
</component>
|
57
io.github.zen_browser.desktop.yml
Normal file
|
@ -0,0 +1,57 @@
|
|||
app-id: io.github.zen_browser.desktop
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '23.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
base: org.mozilla.firefox.BaseApp
|
||||
base-version: '23.08'
|
||||
command: launch-script.sh
|
||||
finish-args:
|
||||
- --share=ipc
|
||||
- --share=network
|
||||
- --socket=pulseaudio
|
||||
- --socket=wayland
|
||||
- --socket=fallback-x11
|
||||
- --socket=pcsc
|
||||
- --socket=cups
|
||||
- --persist=.zen
|
||||
- --filesystem=xdg-download:rw
|
||||
- --device=all
|
||||
- --talk-name=org.freedesktop.FileManager1
|
||||
- --system-talk-name=org.freedesktop.NetworkManager
|
||||
- --talk-name=org.a11y.Bus
|
||||
modules:
|
||||
- name: zen_browser
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- mv zen/* /app/
|
||||
|
||||
- install -d /app/share/icons
|
||||
|
||||
- cp -r icons/* /app/share/icons
|
||||
- install -Dm0755 launch-script.sh ${FLATPAK_DEST}/bin/launch-script.sh
|
||||
- install -Dm0644 policies.json /app/bin/distribution/policies.json
|
||||
|
||||
- install -Dm0644 io.github.zen_browser.desktop.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
||||
- install -Dm0644 io.github.zen_browser.desktop.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
||||
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/zen-browser/desktop/releases/download/1.0.0-a.7/zen.linux.tar.bz2
|
||||
|
||||
- type: file
|
||||
path: policies.json
|
||||
|
||||
- type: file
|
||||
path: launch-script.sh
|
||||
|
||||
- type: file
|
||||
path: io.github.zen_browser.desktop.metainfo.xml
|
||||
- type: file
|
||||
path: io.github.zen_browser.desktop.desktop
|
||||
|
||||
- type: file
|
||||
path: ./icons/io.github.zen_browser.desktop.png
|
||||
dest: icons
|
||||
|
||||
- type: file
|
||||
path: flathub.json
|
|
@ -1,19 +1,4 @@
|
|||
#!/bin/bash
|
||||
export TMPDIR=$XDG_CACHE_HOME/tmp
|
||||
|
||||
MOZ_LAUNCHER="$MOZ_DIST_BIN/launch-script.sh"
|
||||
##
|
||||
## Enable Wayland backend?
|
||||
##
|
||||
if ! [ $MOZ_DISABLE_WAYLAND ] && [ "$WAYLAND_DISPLAY" ]; then
|
||||
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
fi
|
||||
## Enable Wayland on KDE/Sway
|
||||
##
|
||||
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /app/bin/zen "$@"
|
||||
exec /app/zen/zen "$@"
|
36
update.sh
|
@ -1,36 +0,0 @@
|
|||
|
||||
git clone https://github.com/zen-browser/desktop.git browser
|
||||
|
||||
icon_id="com.zen.browser"
|
||||
icon_repo_path="browser/configs/branding"
|
||||
|
||||
function icon {
|
||||
local size="$1x$1"
|
||||
local brand=$2
|
||||
|
||||
echo "Icon: $size"
|
||||
|
||||
# Initialise dirs
|
||||
mkdir -p "icons/$brand/hicolor/$size/apps/"
|
||||
mkdir -p "icons/$brand/appdir/$size/"
|
||||
# Download files to the correct dir
|
||||
cp "$icon_repo_path/$brand/logo$1.png" "icons/$brand/hicolor/$size/apps/$icon_id.png"
|
||||
cp "$icon_repo_path/$brand/logo$1.png" "icons/$brand/appdir/$size/$icon_id.png"
|
||||
}
|
||||
|
||||
function branding_icon {
|
||||
local brand=$1
|
||||
|
||||
icon 16 $brand
|
||||
icon 22 $brand
|
||||
icon 24 $brand
|
||||
icon 32 $brand
|
||||
icon 48 $brand
|
||||
icon 64 $brand
|
||||
icon 128 $brand
|
||||
icon 256 $brand
|
||||
}
|
||||
|
||||
branding_icon "alpha"
|
||||
|
||||
rm -rf browser
|