@@ -27,22 +27,48 @@ echo "Set version to $version"
2727echo " Create man page"
2828./script/manpage.sh " $version " " $( date ' +%Y-%m-%d' ) "
2929
30- x86_64_apple_darwin_file=" git-coauthor-$version -x86_64-apple-darwin.tar.gz"
31- aarch64_apple_darwin_file=" git-coauthor-$version -aarch64-apple-darwin.tar.gz"
32-
33- echo " Create $x86_64_apple_darwin_file "
34- rm -rf bin
35- mkdir -p bin
36- mv git-coauthor-x86_64-apple-darwin bin/git-coauthor
37- rm -f " $x86_64_apple_darwin_file "
38- tar -czf " $x86_64_apple_darwin_file " ./man/ ./bin/
39-
40- echo " Create $aarch64_apple_darwin_file "
41- rm -rf bin
42- mkdir -p bin
43- mv git-coauthor-aarch64-apple-darwin bin/git-coauthor
44- rm -f " $aarch64_apple_darwin_file "
45- tar -czf " $aarch64_apple_darwin_file " ./man/ ./bin/
30+ # Keep this list in sync with homebrew.sh
31+ monterey_file=" git-coauthor-$version .monterey.bottle.1.tar.gz"
32+ ventura_file=" git-coauthor-$version .ventura.bottle.1.tar.gz"
33+ sonoma_file=" git-coauthor-$version .sonoma.bottle.1.tar.gz"
34+
35+ arm64_monterey_file=" git-coauthor-$version .arm64_monterey.bottle.1.tar.gz"
36+ arm64_ventura_file=" git-coauthor-$version .arm64_ventura.bottle.1.tar.gz"
37+ arm64_sonoma_file=" git-coauthor-$version .arm64_sonoma.bottle.1.tar.gz"
38+
39+ release_file=" git-coauthor-$version .tar.gz"
40+
41+ echo " Create $ventura_file "
42+ rm -rf git-coauthor
43+ mkdir -p " git-coauthor/$version /bin"
44+ mkdir -p " git-coauthor/$version /share/man/man1"
45+ mv git-coauthor-macos-13-x86_64-apple-darwin " git-coauthor/$version /bin/git-coauthor"
46+ cp man/git-coauthor.1 " git-coauthor/$version /share/man/man1/"
47+ tar -czf " $ventura_file " git-coauthor
48+
49+ echo " Create $arm64_sonoma_file "
50+ rm -rf git-coauthor
51+ mkdir -p " git-coauthor/$version /bin"
52+ mkdir -p " git-coauthor/$version /share/man/man1"
53+ mv git-coauthor-macos-14-aarch64-apple-darwin " git-coauthor/$version /bin/git-coauthor"
54+ mv man/git-coauthor.1 " git-coauthor/$version /share/man/man1/"
55+ tar -czf " $arm64_sonoma_file " git-coauthor
56+
57+ # A bit of cheating
58+ echo " Create $arm64_monterey_file "
59+ cp " $arm64_sonoma_file " " $arm64_monterey_file "
60+
61+ echo " Create $arm64_ventura_file "
62+ cp " $arm64_sonoma_file " " $arm64_ventura_file "
63+
64+ echo " Create $monterey_file "
65+ cp " $ventura_file " " $monterey_file "
66+
67+ echo " Create $sonoma_file "
68+ cp " $ventura_file " " $sonoma_file "
69+
70+ echo " Create $release_file "
71+ tar -czf " $release_file " ./man/ ./src/ Cargo.lock Cargo.toml
4672
4773echo " Create Homebrew formula"
4874./script/homebrew.sh " $version "
@@ -84,8 +110,13 @@ git push origin "v$version"
84110
85111echo " Create release"
86112gh release create " v$version " \
87- " $x86_64_apple_darwin_file " \
88- " $aarch64_apple_darwin_file " \
113+ " $monterey_file " \
114+ " $ventura_file " \
115+ " $sonoma_file " \
116+ " $arm64_monterey_file " \
117+ " $arm64_ventura_file " \
118+ " $arm64_sonoma_file " \
119+ " $release_file " \
89120 -R nicholasdower/git-coauthor \
90121 --notes-file tmp/.release-notes
91122
0 commit comments