This commit is contained in:
KiKaraage 2025-05-31 11:13:17 +05:30 committed by GitHub
commit a8e2d45815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 142 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<img src="./favicon.svg" height="200" align="left"/>
### `Zen Browser update server`
### `Zen Browser Update Server`
Resource server used for firefox's automatic updates system
Resource server used for automatic updates system in Zen

View file

@ -1,2 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 80 80"><defs><style>.g{fill:none;stroke:#fff;stroke-linejoin:round;stroke-width:4.375px;}.h{fill:url(#e);}.h,.i{stroke-width:0px;}.i{fill:#c9987e;}</style><linearGradient id="e" x1="40" y1="80" x2="40" y2="0" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#fff" stop-opacity="0"/><stop offset=".9" stop-color="#fff" stop-opacity=".1"/></linearGradient></defs><g id="c"><rect class="i" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="d"><rect class="h" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="f"><path class="g" d="M33.3917,50.625h22.5458c2.9642,0,5.3614,2.4276,5.3117,5.4032-.0486,2.9129-2.4859,5.2218-5.3992,5.2218h-31.7886"/><path class="g" d="M46.2859,29.375h-22.136c-2.9133,0-5.3506-2.3089-5.3992-5.2218-.0496-2.9756,2.3475-5.4032,5.3117-5.4032h31.8763"/><path class="g" d="M24.0615,61.25c-.6775,0-1.3659-.1303-2.0307-.4057-2.7105-1.1227-3.9977-4.2302-2.875-6.9406,1.7267-4.1686,4.2017-7.9058,7.3563-11.1076,3.268-3.3171,7.122-5.9089,11.4551-7.7038,5.956-2.4672,10.5947-7.1058,13.0615-13.0615,1.1227-2.7107,4.2303-3.9976,6.9406-2.875,2.7105,1.1227,3.9977,4.2302,2.875,6.9406-1.7267,4.1686-4.2017,7.9058-7.3563,11.1076-3.268,3.3171-7.122,5.9089-11.4551,7.7038-5.956,2.4672-10.5947,7.1058-13.0615,13.0615-.8473,2.0457-2.8255,3.2808-4.9099,3.2808Z"/></g></svg>
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dd_641_2272)">
<rect x="82" y="82" width="860" height="860" rx="155.371" fill="#202020"/>
</g>
<circle cx="512.439" cy="512.439" r="113.02" stroke="#F76F53" stroke-width="25.1953"/>
<circle cx="512.439" cy="512.438" r="197.737" stroke="#F76F53" stroke-width="41.9922"/>
<circle cx="512.439" cy="512.439" r="298.266" stroke="#F76F53" stroke-width="58.7891"/>
<defs>
<filter id="filter0_dd_641_2272" x="74.4414" y="80.3203" width="875.117" height="878.477" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feMorphology radius="0.839844" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_641_2272"/>
<feOffset dy="5.87891"/>
<feGaussianBlur stdDeviation="3.35938"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_641_2272"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="10.0781"/>
<feGaussianBlur stdDeviation="3.35938"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
<feBlend mode="normal" in2="effect1_dropShadow_641_2272" result="effect2_dropShadow_641_2272"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_641_2272" result="shape"/>
</filter>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After

113
install-twilight.sh Normal file
View file

@ -0,0 +1,113 @@
#!/bin/bash
set -euo pipefail
app_name=zen-twilight
literal_name_of_installation_directory=".tarball-installations"
universal_path_for_installation_directory="$HOME/$literal_name_of_installation_directory"
app_installation_directory="$universal_path_for_installation_directory/zen-twilight"
official_package_location="https://github.com/zen-browser/desktop/releases/download/twilight/zen.linux-x86_64.tar.xz"
tar_location=$(mktemp /tmp/zen.XXXXXX.tar.xz)
open_tar_application_data_location="zen"
local_bin_path="$HOME/.local/bin"
local_application_path="$HOME/.local/share/applications"
app_bin_in_local_bin="$local_bin_path/$app_name"
desktop_in_local_applications="$local_application_path/$app_name.desktop"
icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png"
executable_path=$app_installation_directory/zen
echo "Welcome to Zen Twilight tarball installer, just chill and wait for the installation to complete!"
sleep 1
echo "Downloading the latest package"
curl -L -o $tar_location $official_package_location
if [ $? -eq 0 ]; then
echo OK
else
echo "Download failed. Curl not found or not installed"
exit
fi
echo "Extracting Zen Twilight..."
tar -xvJf $tar_location
echo "Untarred successfully!"
echo "Checking to see if an older installation exists"
if [ -f "$app_bin_in_local_bin" ]; then
echo "Old bin file detected, removing..."
rm "$app_bin_in_local_bin"
fi
if [ -d "$app_installation_directory" ]; then
echo "Old app files are found, removing..."
rm -rf "$app_installation_directory"
fi
if [ -f "$desktop_in_local_applications" ]; then
echo "Old app files are found, removing..."
rm "$desktop_in_local_applications"
fi
if [ ! -d $universal_path_for_installation_directory ]; then
echo "Creating the $universal_path_for_installation_directory directory for installation"
mkdir $universal_path_for_installation_directory
fi
mv $open_tar_application_data_location $app_installation_directory
echo "Zen Twilight successfully moved to your safe place!"
rm $tar_location
if [ ! -d $local_bin_path ]; then
echo "$local_bin_path not found, creating it for you"
mkdir $local_bin_path
fi
touch $app_bin_in_local_bin
chmod u+x $app_bin_in_local_bin
echo "#!/bin/bash
$executable_path" >> $app_bin_in_local_bin
echo "Created executable for your \$PATH if you ever need"
if [ ! -d $local_application_path ]; then
echo "Creating the $local_application_path directory for desktop file"
mkdir $local_application_path
fi
touch $desktop_in_local_applications
echo "
[Desktop Entry]
Name=Zen Twilight
Comment=Development build of Zen Browser with latest experimental features and updates
Keywords=web;browser;internet
Exec=$executable_path %u
Icon=$icon_path
Terminal=false
StartupNotify=true
StartupWMClass=zen
NoDisplay=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
Categories=Network;WebBrowser;
Actions=new-window;new-private-window;profile-manager-window;
[Desktop Action new-window]
Name=Open a New Window
Exec=$executable_path --new-window %u
[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=$executable_path --private-window %u
[Desktop Action profile-manager-window]
Name=Open the Profile Manager
Exec=$executable_path --ProfileManager
" >> $desktop_in_local_applications
echo "Created desktop entry successfully"
echo "Installation is successful"
echo "Done, and done, have fun! 🐷"
exit 0