diff --git a/README.md b/README.md index 91cba5f..d1c5282 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,8 @@ For packaging info, see: --- -Based on the [librewolf-allow-dark](https://aur.archlinux.org/packages/librewolf-allow-dark) AUR package, directly copying `allow_dark.patch` from it. `librewolf.desktop` and `librewolf.ico` are grabbed from [bsys6](https://codeberg.org/librewolf/bsys6). +- Based on the [librewolf-allow-dark](https://aur.archlinux.org/packages/librewolf-allow-dark) AUR package, directly copying `allow_dark.patch` from it. +- `librewolf.desktop` and `librewolf.ico` are grabbed from [bsys6](https://codeberg.org/librewolf/bsys6). +- Bocchi the Firefox was created by Dr Blobfish - [here](https://im-in.space/@drblobfish/114167110488757878). + - The original image wasn't square, so it was modified by adding 8 pixels of transparency on the left and right sides using `convert bocchi-the-firefox.png -gravity center -background transparent -extent 516x516 bocchi-the-firefox.png` + - It's then converted and resized to match all the original Librewolf images. diff --git a/bocchi-the-firefox.png b/bocchi-the-firefox.png new file mode 100644 index 0000000..bb1c0a0 Binary files /dev/null and b/bocchi-the-firefox.png differ diff --git a/compilation.sh b/compilation.sh index 6ebd9d3..432e551 100755 --- a/compilation.sh +++ b/compilation.sh @@ -42,13 +42,20 @@ export MOZ_NOSPAM=1 cd $workdir tar -xvf ./librewolf-$version/obj-x86_64-pc-linux-gnu/dist/librewolf-$version.en-US.linux-x86_64.tar.xz cd ./librewolf/ -apt install zstd -y +apt install zstd imagemagick -y mkdir -p $built_dir rm ./pingsender rm ./precomplete rm ./removed-files curl -L https://codeberg.org/librewolf/bsys6/raw/branch/master/assets/linux.librewolf.desktop.in -o librewolf.desktop -curl -LO https://codeberg.org/librewolf/bsys6/raw/branch/master/assets/librewolf.ico +convert $SCRIPT_DIR/bocchi-the-firefox.png -resize 256x256 ./librewolf.ico +cd ./browser/chrome/icons/default/ +rm ./* +resolutions=(16 32 64 128) +for res in "${resolutions[@]}"; do + convert $SCRIPT_DIR/bocchi-the-firefox.png -resize ${res}x${res} ./default${res}.png +done +cd - tar --zstd -cf $built_dir/$program_name.tar.zst . echo $version >$version_file