• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Until Sans and Serif are split into two repos on https://github.com/notofonts
4# we have everything in this single repo https://github.com/googlefonts/noto-cjk
5# This script will make a new release for Serif. To do a Sans release use gh-release-noto-cjk-sans.sh
6# Requires GitHub CLI (https://github.com/cli/cli/releases)
7
8VERSION=2.002
9
10echo "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
11
12cd Serif
13zip -r -v 02_NotoSerifCJK-OTF-VF.zip Variable/OTF Variable/OTC/NotoSerifCJK-VF.otf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
14zip -r -v 03_NotoSerifCJK-TTF-VF.zip Variable/TTF Variable/OTC/NotoSerifCJK-VF.ttf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
15zip -r -v 04_NotoSerifCJKOTC.zip OTC LICENSE --exclude "*.zip" "*.DS_Store" "OTC/NotoSerifCJK.ttc"
16zip -r -v 05_NotoSerifCJKOTF.zip OTF LICENSE --exclude "*.zip" "*.DS_Store"
17zip -r -v 06_NotoSerifCJKSubsetOTF.zip SubsetOTF LICENSE --exclude "*.zip" "*.DS_Store"
18zip -r -v 07_NotoSerifCJKjp.zip OTF/Japanese LICENSE --exclude "*.zip" "*.DS_Store"
19zip -r -v 08_NotoSerifCJKkr.zip OTF/Korean LICENSE --exclude "*.zip" "*.DS_Store"
20zip -r -v 09_NotoSerifCJKsc.zip OTF/SimplifiedChinese LICENSE --exclude "*.zip" "*.DS_Store"
21zip -r -v 10_NotoSerifCJKtc.zip OTF/TraditionalChinese LICENSE --exclude "*.zip" "*.DS_Store"
22zip -r -v 11_NotoSerifCJKhk.zip OTF/TraditionalChineseHK LICENSE --exclude "*.zip" "*.DS_Store"
23zip -r -v 12_NotoSerifJP.zip SubsetOTF/JP LICENSE --exclude "*.zip" "*.DS_Store"
24zip -r -v 13_NotoSerifKR.zip SubsetOTF/KR LICENSE --exclude "*.zip" "*.DS_Store"
25zip -r -v 14_NotoSerifSC.zip SubsetOTF/SC LICENSE --exclude "*.zip" "*.DS_Store"
26zip -r -v 15_NotoSerifTC.zip SubsetOTF/TC LICENSE --exclude "*.zip" "*.DS_Store"
27zip -r -v 16_NotoSerifHK.zip SubsetOTF/HK LICENSE --exclude "*.zip" "*.DS_Store"
28
29# The Serif SuperOTC is too large to store on GitHub without LFS so we expect it to
30# be created locally first and then we can attach it as a release asset
31cp SuperOTC/NotoSerifCJK.ttc.zip 01_NotoSerifCJK.ttc.zip
32
33gh 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 \
34        '01_NotoSerifCJK.ttc.zip#Static Super OTC' \
35        '02_NotoSerifCJK-OTF-VF.zip#All Variable OTF/OTC' \
36        '03_NotoSerifCJK-TTF-VF.zip#All Variable TTF/OTC' \
37        '04_NotoSerifCJKOTC.zip#All Static Language Specific OTCs' \
38        '05_NotoSerifCJKOTF.zip#All Static Language Specific OTFs' \
39        '06_NotoSerifCJKSubsetOTF.zip#All Static Region Specific Subset OTFs' \
40        '07_NotoSerifCJKjp.zip#Language Specific OTFs Japanese (日本語)' \
41        '08_NotoSerifCJKkr.zip#Language Specific OTFs Korean (한국어)' \
42        '09_NotoSerifCJKsc.zip#Language Specific OTFs Simplified Chinese (简体中文)' \
43        '10_NotoSerifCJKtc.zip#Language Specific OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
44        '11_NotoSerifCJKhk.zip#Language Specific OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \
45        '12_NotoSerifJP.zip#Region Specific Subset OTFs Japanese (日本語)' \
46        '13_NotoSerifKR.zip#Region Specific Subset OTFs Korean (한국어)' \
47        '14_NotoSerifSC.zip#Region Specific Subset OTFs Simplified Chinese (简体中文)' \
48        '15_NotoSerifTC.zip#Region Specific Subset OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
49        '16_NotoSerifHK.zip#Region Specific Subset OTFs Traditional Chinese — Hong Kong (繁體中文—香港)'
50
51rm *.zip
52rm git-release-notes.md
53cd ..
54