mirror of https://git.suyu.dev/suyu/suyu
Compare commits
7 Commits
d492bf496d
...
1140773e74
Author | SHA1 | Date |
---|---|---|
drHyperion451 | 1140773e74 | |
Aaron Dewes | d02af377d4 | |
drHyperion451 | f141b43912 | |
Amir Abravesh | 7a33aedc57 | |
drHyperion451 | 850876afde | |
drHyperion451 | 8234e0117e | |
drHyperion451 | ee608ce097 |
|
@ -24,7 +24,7 @@ It is written in C++ with portability in mind, and we actively maintain builds f
|
|||
</h4>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://discord.gg/2gQRBp44KT">Discord</a> |
|
||||
<a href="https://discord.gg/suyu">Discord</a> |
|
||||
<a href="#status">Status</a> |
|
||||
<a href="#development">Development</a> |
|
||||
<a href="#downloads">Downloads</a> |
|
||||
|
@ -36,7 +36,7 @@ It is written in C++ with portability in mind, and we actively maintain builds f
|
|||
|
||||
## Status
|
||||
|
||||
Although we're able to make builds, we don't have a version ready for distribution yet. But we can always use more help! You can make a merge request if you'd like to see something changed, or you can [chat with other developers to find out what needs work](https://discord.gg/2gQRBp44KT).
|
||||
Although we're able to make builds, we don't have a version ready for distribution yet. But we can always use more help! You can make a merge request if you'd like to see something changed, or you can [chat with other developers to find out what needs work](https://discord.gg/suyu).
|
||||
|
||||
**Note**: We try to update this README whenever we can, but some links might be broken, and some information may be outdated or irrelevant.
|
||||
|
||||
|
@ -44,7 +44,7 @@ Although we're able to make builds, we don't have a version ready for distributi
|
|||
|
||||
This project is completely free and open source, and anyone can contribute to help improve suyu.
|
||||
|
||||
Most of the development happens on GitLab. For development discussion, please join us on [Discord](https://discord.gg/2gQRBp44KT).
|
||||
Most of the development happens on GitLab. For development discussion, please join us on [Discord](https://discord.gg/suyu).
|
||||
|
||||
If you want to contribute, please take a look at the [Contributor's Guide](https://gitlab.com/suyu-emu/suyu/-/wikis/Contributing) and [Developer Information](https://gitlab.com/suyu-emu/suyu/-/wikis/Developer-Information).
|
||||
You can also contact any of the developers on Discord to learn more about the current state of suyu.
|
||||
|
@ -65,7 +65,7 @@ We don't have any official builds yet! If any website or person is claiming to h
|
|||
|
||||
## Support
|
||||
|
||||
If you have any questions, don't hesitate to ask us on [Discord](https://discord.gg/2gQRBp44KT). We don't bite!
|
||||
If you have any questions, don't hesitate to ask us on [Discord](https://discord.gg/suyu). We don't bite!
|
||||
|
||||
|
||||
## License
|
||||
|
|
|
@ -1,14 +1,61 @@
|
|||
mkdir suyu.iconset
|
||||
convert -background none -resize 16x16 suyu.svg suyu.iconset/icon_16x16.png;
|
||||
convert -background none -resize 32x32 suyu.svg suyu.iconset/icon_16x16@2x.png;
|
||||
convert -background none -resize 32x32 suyu.svg suyu.iconset/icon_32x32.png;
|
||||
convert -background none -resize 64x64 suyu.svg suyu.iconset/icon_32x32@2x.png;
|
||||
convert -background none -resize 128x128 suyu.svg suyu.iconset/icon_128x128.png;
|
||||
convert -background none -resize 256x256 suyu.svg suyu.iconset/icon_256x256.png;
|
||||
convert -background none -resize 256x256 suyu.svg suyu.iconset/icon_128x128@2x.png;
|
||||
convert -background none -resize 512x512 suyu.svg suyu.iconset/icon_256x256@2x.png;
|
||||
convert -background none -resize 512x512 suyu.svg suyu.iconset/icon_512x512.png;
|
||||
convert -background none -resize 1024x1024 suyu.svg suyu.iconset/icon_512x512@2x.png;
|
||||
#!/bin/bash
|
||||
# icns_generator.sh GNU GPLv3 License
|
||||
# Run this script when a new logo is made and the suyu.svg file inside.
|
||||
# You should install Imagemagick to make the conversions: $brew install imagemagick
|
||||
|
||||
iconutil -c icns suyu.iconset
|
||||
rm -rf suyu.iconset
|
||||
# Change working dir to where this script is located.
|
||||
cd "${0%/*}"
|
||||
|
||||
# Error Handling Stuff:
|
||||
## Check command availability
|
||||
check_command() {
|
||||
if ! command -v "$1" &> /dev/null; then
|
||||
read -s -n 1 -p "Error: '$1' command not found. Please install $2."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
## Convert image with error handling
|
||||
convert_image() {
|
||||
convert -background none -resize "$2" "$1" "$3" || {
|
||||
read -s -n 1 -p "Error: Conversion failed for $1"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
# Check required commands
|
||||
check_command "convert" "ImageMagick"
|
||||
check_command "iconutil" "macOS"
|
||||
|
||||
# Create the iconset directory
|
||||
mkdir suyu.iconset || {
|
||||
read -s -n 1 -p "Error: Unable to create suyu.iconset directory."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Convert images
|
||||
convert_image suyu.svg 16x16 suyu.iconset/icon_16x16.png
|
||||
convert_image suyu.svg 32x32 suyu.iconset/icon_16x16@2x.png
|
||||
convert_image suyu.svg 32x32 suyu.iconset/icon_32x32.png
|
||||
convert_image suyu.svg 64x64 suyu.iconset/icon_32x32@2x.png
|
||||
convert_image suyu.svg 128x128 suyu.iconset/icon_128x128.png
|
||||
convert_image suyu.svg 256x256 suyu.iconset/icon_256x256.png
|
||||
convert_image suyu.svg 256x256 suyu.iconset/icon_128x128@2x.png
|
||||
convert_image suyu.svg 512x512 suyu.iconset/icon_256x256@2x.png
|
||||
convert_image suyu.svg 512x512 suyu.iconset/icon_512x512.png
|
||||
convert_image suyu.svg 1024x1024 suyu.iconset/icon_512x512@2x.png
|
||||
|
||||
# Create the ICNS file
|
||||
iconutil -c icns suyu.iconset || {
|
||||
read -s -n 1 -p "Error: Failed to create ICNS file."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Remove the temporary iconset directory
|
||||
rm -rf suyu.iconset || {
|
||||
read -s -n 1 -p "Error: Unable to remove suyu.iconset directory."
|
||||
exit 1
|
||||
}
|
||||
|
||||
read -s -n 1 -p "Icon generation completed successfully."
|
||||
echo ""
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue