1#!/bin/bash
2
3
4create-dmg "HoldSpeak.app"
5
6
7if [ $? -ne 0 ]; then
8 echo "Failed to create DMG file."
9 exit 1
10fi
11
12
13
14dmg_file=$(find . -maxdepth 1 -name "HoldSpeak *.dmg")
15
16
17if [ -z "$dmg_file" ]; then
18 echo "DMG file not found."
19 exit 1
20fi
21
22
23new_dmg_file=$(echo "$dmg_file" | sed 's/ /-/g')
24
25
26mv "$dmg_file" "$new_dmg_file"
27
28
29if [ $? -ne 0 ]; then
30 echo "Failed to rename DMG file."
31 exit 1
32fi
33
34
35/Users/yifanwang/Library/Developer/Xcode/DerivedData/HoldSpeak-gzkdsarrycmfhjcpcnyfjkdqvinq/SourcePackages/artifacts/sparkle/Sparkle/bin/generate_appcast .
36
37
38if [ $? -ne 0 ]; then
39 echo "Failed to generate appcast."
40 exit 1
41fi
42
43
44if [ -f "appcast.xml" ]; then
45 cat "appcast.xml"
46else
47 echo "appcast.xml not found."
48 exit 1
49fi