From 044d24ab0983604df874a7d2da8fb8fa348ee42b Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Sat, 29 Mar 2025 21:01:01 +0700 Subject: [PATCH 1/9] Update install.sh for Twilight installation --- install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 7e07466..f6bd8fd 100644 --- a/install.sh +++ b/install.sh @@ -2,11 +2,11 @@ set -euo pipefail -app_name=zen +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" -official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/zen.linux-x86_64.tar.xz" +app_installation_directory="$universal_path_for_installation_directory/$app_name" +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" @@ -16,7 +16,7 @@ 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 tarball installer, just chill and wait for the installation to complete!" +echo "Welcome to Zen Twilight tarball installer, just chill and wait for the installation to complete!" sleep 1 @@ -29,7 +29,7 @@ else exit fi -echo "Extracting Zen Browser..." +echo "Extracting Zen Twilight..." tar -xvJf $tar_location echo "Untarred successfully!" @@ -57,7 +57,7 @@ fi mv $open_tar_application_data_location $app_installation_directory -echo "Zen successfully moved to your safe place!" +echo "Zen Twilight successfully moved to your safe place!" rm $tar_location @@ -82,7 +82,7 @@ fi touch $desktop_in_local_applications echo " [Desktop Entry] -Name=Zen Browser +Name=Zen Twilight Comment=Experience tranquillity while browsing the web without people tracking you! Keywords=web;browser;internet Exec=$executable_path %u From 47b22262d7cb708754abdb76b0b56653d2b3b7ce Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 10:53:07 +0700 Subject: [PATCH 2/9] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f6bd8fd..de9f802 100644 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ 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/$app_name" +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" From e168272204ae35983531196eb92378fdcda497e5 Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:29:16 +0700 Subject: [PATCH 3/9] Rename install.sh to install-twilight.sh --- install.sh => install-twilight.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename install.sh => install-twilight.sh (100%) diff --git a/install.sh b/install-twilight.sh similarity index 100% rename from install.sh rename to install-twilight.sh From 3faccf011f516295297ed6e6d978376c660039b2 Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:40:01 +0700 Subject: [PATCH 4/9] Delete old favicon.svg --- favicon.svg | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 favicon.svg diff --git a/favicon.svg b/favicon.svg deleted file mode 100644 index 81b98f1..0000000 --- a/favicon.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file From 4feb11d8cf166f6685cdbe46c37aa155afff5309 Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:41:56 +0700 Subject: [PATCH 5/9] Update latest icon and regular tarball script --- favicon.svg | 27 +++++++++++++ install.sh | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 favicon.svg create mode 100644 install.sh diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..c61a921 --- /dev/null +++ b/favicon.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..7e07466 --- /dev/null +++ b/install.sh @@ -0,0 +1,113 @@ +#!/bin/bash + +set -euo pipefail + +app_name=zen +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" +official_package_location="https://github.com/zen-browser/desktop/releases/latest/download/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 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 Browser..." +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 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 Browser +Comment=Experience tranquillity while browsing the web without people tracking you! +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 From a7e065dd59bc4f17be1895165a15b3af2af05f82 Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:44:27 +0700 Subject: [PATCH 6/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f264c0..9525ed3 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ ### `Zen Browser update server` -Resource server used for firefox's automatic updates system +Resource server used for automatic updates system in Zen From 6a3672a3460ac20b899bcf539c6c2af47acd2ac2 Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:44:49 +0700 Subject: [PATCH 7/9] Fix some capitalization --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9525ed3..ae66350 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -### `Zen Browser update server` +### `Zen Browser Update Server` Resource server used for automatic updates system in Zen From 5742eca0cbc5c1914eee236146d249e8d3f0cedf Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:51:19 +0700 Subject: [PATCH 8/9] Update Twilight desktop entry description for better representation --- install-twilight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-twilight.sh b/install-twilight.sh index de9f802..76ed9be 100644 --- a/install-twilight.sh +++ b/install-twilight.sh @@ -83,7 +83,7 @@ touch $desktop_in_local_applications echo " [Desktop Entry] Name=Zen Twilight -Comment=Experience tranquillity while browsing the web without people tracking you! +Comment=Development builds of Zen Browser with latest experimental features and updates Keywords=web;browser;internet Exec=$executable_path %u Icon=$icon_path From f241292a17a6ac1735bda895263a5c76c9eedc9e Mon Sep 17 00:00:00 2001 From: KiKaraage Date: Mon, 26 May 2025 12:51:54 +0700 Subject: [PATCH 9/9] Remove a "s" --- install-twilight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-twilight.sh b/install-twilight.sh index 76ed9be..c001c78 100644 --- a/install-twilight.sh +++ b/install-twilight.sh @@ -83,7 +83,7 @@ touch $desktop_in_local_applications echo " [Desktop Entry] Name=Zen Twilight -Comment=Development builds of Zen Browser with latest experimental features and updates +Comment=Development build of Zen Browser with latest experimental features and updates Keywords=web;browser;internet Exec=$executable_path %u Icon=$icon_path