-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command line release scripts used to create zips and attach as re…
…lease assets.
- Loading branch information
1 parent
071cfc7
commit b4f6497
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
# Until Sans and Serif are split into two repos on https://github.com/notofonts | ||
# we have everything in this single repo https://github.com/googlefonts/noto-cjk | ||
# This script will make a new release for Sans. To do a Serif release use gh-release-noto-cjk-serif.sh | ||
# Requires GitHub CLI (https://github.com/cli/cli/releases) | ||
|
||
VERSION=2.004 | ||
|
||
echo "Download individual assets from below or through the download [guide](https://github.com/googlefonts/noto-cjk/tree/main/Sans#downloading-noto-sans-cjk)." > Sans/git-release-notes.md | ||
|
||
cd Sans | ||
zip -r -v 01_NotoSansCJK-OTF-VF.zip Variable/OTF Variable/OTC/NotoSansCJK-VF.otf.ttc ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 02_NotoSansCJK-TTF-VF.zip Variable/TTF Variable/OTC/NotoSansCJK-VF.ttf.ttc ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 03_NotoSansCJK-OTC.zip OTC ../LICENSE --exclude "*.zip" "*.DS_Store" "OTC/NotoSansCJK.ttc" | ||
zip -r -v 04_NotoSansCJK-OTF.zip OTF ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 05_NotoSansCJK-SubsetOTF.zip SubsetOTF ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 06_NotoSansCJKjp.zip OTF/Japanese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 07_NotoSansCJKkr.zip OTF/Korean ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 08_NotoSansCJKsc.zip OTF/SimplifiedChinese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 09_NotoSansCJKtc.zip OTF/TraditionalChinese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 10_NotoSansCJKhk.zip OTF/TraditionalChineseHK ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 11_NotoSansMonoCJKjp.zip Mono/NotoSansMonoCJKjp* ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 12_NotoSansMonoCJKkr.zip Mono/NotoSansMonoCJKkr* ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 13_NotoSansMonoCJKsc.zip Mono/NotoSansMonoCJKsc* ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 14_NotoSansMonoCJKtc.zip Mono/NotoSansMonoCJKtc* ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 15_NotoSansMonoCJKhk.zip Mono/NotoSansMonoCJKhk* ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 16_NotoSansJP.zip SubsetOTF/JP ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 17_NotoSansKR.zip SubsetOTF/KR ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 18_NotoSansSC.zip SubsetOTF/SC ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 19_NotoSansTC.zip SubsetOTF/TC ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -j -r -v 20_NotoSansHK.zip SubsetOTF/HK ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
|
||
gh release create Sans${VERSION} --title "Noto Sans CJK Version ${VERSION} (OTF, OTC, Super OTC, Subset OTF, Variable OTF/TTF)" -F git-release-notes.md --target main \ | ||
'01_NotoSansCJK-OTF-VF.zip#All Variable OTF/OTC' \ | ||
'02_NotoSansCJK-TTF-VF.zip#All Variable TTF/OTC' \ | ||
'03_NotoSansCJK-OTC.zip#All Static Language Specific OTCs' \ | ||
'04_NotoSansCJK-OTF.zip#All Static Language Specific OTFs' \ | ||
'05_NotoSansCJK-SubsetOTF.zip#All Static Region Specific Subset OTFs' \ | ||
'06_NotoSansCJKjp.zip#Language Specific OTFs Japanese (日本語)' \ | ||
'07_NotoSansCJKkr.zip#Language Specific OTFs Korean (한국어)' \ | ||
'08_NotoSansCJKsc.zip#Language Specific OTFs Simplified Chinese (简体中文)' \ | ||
'09_NotoSansCJKtc.zip#Language Specific OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \ | ||
'10_NotoSansCJKhk.zip#Language Specific OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \ | ||
'11_NotoSansMonoCJKjp.zip#Language Specific Monospace OTFs Japanese (日本語)' \ | ||
'12_NotoSansMonoCJKkr.zip#Language Specific Monospace OTFs Korean (한국어)' \ | ||
'13_NotoSansMonoCJKsc.zip#Language Specific Monospace OTFs Simplified Chinese (简体中文)' \ | ||
'14_NotoSansMonoCJKtc.zip#Language Specific Monospace OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \ | ||
'15_NotoSansMonoCJKhk.zip#Language Specific Monospace OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \ | ||
'16_NotoSansJP.zip#Region Specific Subset OTFs Japanese (日本語)' \ | ||
'17_NotoSansKR.zip#Region Specific Subset OTFs Korean (한국어)' \ | ||
'18_NotoSansSC.zip#Region Specific Subset OTFs Simplified Chinese (简体中文)' \ | ||
'19_NotoSansTC.zip#Region Specific Subset OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \ | ||
'20_NotoSansHK.zip#Region Specific Subset OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' | ||
|
||
rm *.zip | ||
rm git-release-notes.md | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# Until Sans and Serif are split into two repos on https://github.com/notofonts | ||
# we have everything in this single repo https://github.com/googlefonts/noto-cjk | ||
# This script will make a new release for Serif. To do a Sans release use gh-release-noto-cjk-sans.sh | ||
# Requires GitHub CLI (https://github.com/cli/cli/releases) | ||
|
||
VERSION=2.001 | ||
|
||
echo "Download individual assets from below or through the download [guide](https://github.com/googlefonts/noto-cjk/tree/main/Serif#downloading-noto-serif-cjk)." > Serif/git-release-notes.md | ||
|
||
cd Serif | ||
zip -r -v 02_NotoSerifCJK-OTF-VF.zip Variable/OTF Variable/OTC/NotoSerifCJK-VF.otf.ttc ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 03_NotoSerifCJK-TTF-VF.zip Variable/TTF Variable/OTC/NotoSerifCJK-VF.ttf.ttc ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 04_NotoSerifCJKOTC.zip OTC ../LICENSE --exclude "*.zip" "*.DS_Store" "OTC/NotoSerifCJK.ttc" | ||
zip -r -v 05_NotoSerifCJKOTF.zip OTF ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 06_NotoSerifCJKSubsetOTF.zip SubsetOTF ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 07_NotoSerifCJKjp.zip OTF/Japanese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 08_NotoSerifCJKkr.zip OTF/Korean ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 09_NotoSerifCJKsc.zip OTF/SimplifiedChinese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 10_NotoSerifCJKtc.zip OTF/TraditionalChinese ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 11_NotoSerifCJKhk.zip OTF/TraditionalChineseHK ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 12_NotoSerifJP.zip SubsetOTF/JP ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 13_NotoSerifKR.zip SubsetOTF/KR ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 14_NotoSerifSC.zip SubsetOTF/SC ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 15_NotoSerifTC.zip SubsetOTF/TC ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
zip -r -v 16_NotoSerifHK.zip SubsetOTF/HK ../LICENSE --exclude "*.zip" "*.DS_Store" | ||
|
||
# The Serif SuperOTC is too large to store on GitHub without LFS so we expect it to | ||
# be created locally first and then we can attach it as a release asset | ||
cp SuperOTC/NotoSerifCJK.ttc.zip 01_NotoSerifCJK.ttc.zip | ||
|
||
gh release create Serif${VERSION} --title "Noto Serif CJK Version ${VERSION} (OTF, OTC, Super OTC, Subset OTF, Variable OTF/TTF)" -F git-release-notes.md --target main \ | ||
'01_NotoSerifCJK.ttc.zip#Static Super OTC' \ | ||
'02_NotoSerifCJK-OTF-VF.zip#All Variable OTF/OTC' \ | ||
'03_NotoSerifCJK-TTF-VF.zip#All Variable TTF/OTC' \ | ||
'04_NotoSerifCJKOTC.zip#All Static Language Specific OTCs' \ | ||
'05_NotoSerifCJKOTF.zip#All Static Language Specific OTFs' \ | ||
'06_NotoSerifCJKSubsetOTF.zip#All Static Region Specific Subset OTFs' \ | ||
'07_NotoSerifCJKjp.zip#Language Specific OTFs Japanese (日本語)' \ | ||
'08_NotoSerifCJKkr.zip#Language Specific OTFs Korean (한국어)' \ | ||
'09_NotoSerifCJKsc.zip#Language Specific OTFs Simplified Chinese (简体中文)' \ | ||
'10_NotoSerifCJKtc.zip#Language Specific OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \ | ||
'11_NotoSerifCJKhk.zip#Language Specific OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \ | ||
'12_NotoSerifJP.zip#Region Specific Subset OTFs Japanese (日本語)' \ | ||
'13_NotoSerifKR.zip#Region Specific Subset OTFs Korean (한국어)' \ | ||
'14_NotoSerifSC.zip#Region Specific Subset OTFs Simplified Chinese (简体中文)' \ | ||
'15_NotoSerifTC.zip#Region Specific Subset OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \ | ||
'16_NotoSerifHK.zip#Region Specific Subset OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' | ||
|
||
rm *.zip | ||
rm git-release-notes.md | ||
cd .. |