diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..de09cbf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +release.sh export-ignore +.gitattributes export-ignore +.gitmodules export-ignore +.gitignore export-ignore +docs/ export-ignore \ No newline at end of file diff --git a/readme.md b/readme.md index 4885d6b..18ad901 100644 --- a/readme.md +++ b/readme.md @@ -59,7 +59,7 @@ There are currently four themes bundled with the addon. ### ffvii-r -Requires "Libre Franklin Medium" or "Libre Franklin Regular" font, which you can get free from [Google Fonts](https://fonts.google.com/specimen/Libre+Franklin). +Requires "Libre Franklin Medium" or "Libre Franklin Regular" font, which you can get free from [Google Fonts](https://fonts.google.com/specimen/Libre+Franklin). Install the font in Windows. ![Example ffvii-r](https://github.com/onimitch/ffxi-balloon-ashitav4/blob/main/Example-ffvii-r.png "Example ffvii-r") @@ -69,8 +69,9 @@ Requires "Libre Franklin Medium" or "Libre Franklin Regular" font, which you can ### snes-ff -Uses DotGothic16 font, which you can get free from [Google Fonts](https://fonts.google.com/specimen/DotGothic16). -Alternatively you can use DePixel font, which you can get free from [Be Fonts](https://befonts.com/depixel-font-family.html). +Uses "DotGothic16" font, which you can get free from [Google Fonts](https://fonts.google.com/specimen/DotGothic16). Install the font in Windows. + +Alternatively it will look for "DePixel" font if "DotGothic16" not installed, which you can get free from [Be Fonts](https://befonts.com/depixel-font-family.html). ![Example snes-ff](https://github.com/onimitch/ffxi-balloon-ashitav4/blob/main/Example-snes-ff.png "Example snes-ff") diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..90ed711 --- /dev/null +++ b/release.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Please specify an archive name." + echo "Usage: ./release.sh " + exit 1 +fi +if [ -z "$2" ]; then + echo "Please specify a version number." + echo "Usage: ./release.sh " + exit 1 +fi + +prefix="$1" +outfile="$PWD/$1_$2.zip" +temp_dir="$PWD/release_temp" +temp_zip="$PWD/temp.zip" + +rm -rf "$temp_zip" +rm -rf "$temp_dir" +mkdir -p "$temp_dir" + +git archive --format=zip --prefix "$prefix/" HEAD > "$temp_zip" && unzip "$temp_zip" -d "$temp_dir" && rm -rf "$temp_zip" +git submodule foreach --recursive " git archive --format=zip --prefix=\"$prefix/\$sm_path/\" HEAD > \"$temp_zip\" && unzip \"$temp_zip\" -d \"$temp_dir\" && rm -rf \"$temp_zip\" " + +rm -rf "$outfile" +7z a "$outfile" "$temp_dir/$prefix" + +# cleanup +rm -rf "$temp_zip" +rm -rf "$temp_dir" \ No newline at end of file