Skip to content

Commit 2d5030e

Browse files
committed
4.2.0
1 parent 3fcdf6a commit 2d5030e

21 files changed

+245
-220
lines changed

Build/appdmg.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ do
3535
echo "appdmg V2rayU-64.dmg"
3636
rm -f V2rayU-64.dmg
3737
appdmg appdmg.json "V2rayU-64.dmg"
38-
#rm -fr release/V2rayU.app
39-
./sign_update "V2rayU-64.dmg"
4038

4139
break
4240
;;
@@ -48,8 +46,6 @@ do
4846
echo "appdmg V2rayU-arm64.dmg"
4947
rm -f V2rayU-arm64.dmg
5048
appdmg appdmg.json "V2rayU-arm64.dmg"
51-
#rm -fr release/V2rayU.app
52-
./sign_update "V2rayU-64.dmg"
5349

5450
break
5551
;;

Build/build.plist

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3-
<plist version="1.0">
4-
<dict>
5-
<key>compileBitcode</key>
6-
<false/>
7-
<key>method</key>
8-
<string>development</string>
9-
</dict>
10-
</plist>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>method</key>
6+
<dict/>
7+
<key>development</key>
8+
<true/>
9+
</dict>
10+
</plist>

Build/publish.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

Build/release.sh

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,60 @@ APP_TITLE="${APP_NAME} - V${APP_Version}"
1313
AppCastDir=$HOME/swift/appcast
1414

1515
function updatePlistVersion() {
16+
echo "Updating plist version..."
1617
buildString=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${BASE_DIR}/V2rayU/${INFOPLIST_FILE}")
17-
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildString" "${BASE_DIR}/V2rayU/${INFOPLIST_FILE}"
18+
if [ $? -eq 0 ]; then
19+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildString" "${BASE_DIR}/V2rayU/${INFOPLIST_FILE}"
20+
if [ $? -ne 0 ]; then
21+
echo "Error: Failed to set CFBundleVersion"
22+
exit 1
23+
fi
24+
else
25+
echo "Error: Failed to read CFBundleShortVersionString"
26+
exit 1
27+
fi
1828
}
1929

2030
function build() {
21-
echo "Building V2rayU."${APP_Version}
31+
echo "Building V2rayU version ${APP_Version}"
32+
2233
echo "Cleaning up old archive & app..."
2334
rm -rf ${V2rayU_ARCHIVE} ${V2rayU_RELEASE}
35+
if [ $? -ne 0 ]; then
36+
echo "Error: Failed to clean up old archive & app"
37+
exit 1
38+
fi
2439

2540
echo "Building archive... please wait a minute"
2641
xcodebuild -workspace ${BASE_DIR}/V2rayU.xcworkspace -config Release -scheme V2rayU -archivePath ${V2rayU_ARCHIVE} archive
42+
if [ $? -ne 0 ]; then
43+
echo "Error: Failed to build archive"
44+
exit 1
45+
fi
2746

2847
echo "Exporting archive..."
2948
xcodebuild -archivePath ${V2rayU_ARCHIVE} -exportArchive -exportPath ${V2rayU_RELEASE} -exportOptionsPlist ./build.plist
49+
if [ $? -ne 0 ]; then
50+
echo "Error: Failed to export archive"
51+
exit 1
52+
fi
3053

3154
echo "Cleaning up archive..."
3255
rm -rf ${V2rayU_ARCHIVE}
56+
if [ $? -ne 0 ]; then
57+
echo "Error: Failed to clean up archive"
58+
exit 1
59+
fi
3360

61+
echo "Setting permissions for resources..."
3462
chmod -R 755 "${V2rayU_RELEASE}/${APP_NAME}.app/Contents/Resources/v2ray-core"
3563
chmod -R 755 "${V2rayU_RELEASE}/${APP_NAME}.app/Contents/Resources/unzip.sh"
64+
if [ $? -ne 0 ]; then
65+
echo "Error: Failed to set permissions for resources"
66+
exit 1
67+
fi
68+
69+
echo "Build and export completed successfully."
3670
}
3771

3872
function createDmg() {
@@ -209,9 +243,6 @@ function createDmgByAppdmg() {
209243
echo ${BUILD_DIR}/appdmg.json
210244
appdmg appdmg.json ${DMG_FINAL}
211245

212-
# appcast sign update
213-
${AppCastDir}/bin/sign_update ${DMG_FINAL}
214-
215246
# umount "/Volumes/${APP_NAME}"
216247
}
217248

@@ -256,7 +287,7 @@ function makeDmg() {
256287
}
257288

258289

259-
260-
290+
#makeDmg
291+
createDmgByAppdmg
261292

262293
echo 'done'

Build/sign.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

Build/sign_update

-296 KB
Binary file not shown.

Podfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ target 'V2rayU' do
1010
# Pods for V2rayU
1111
pod 'FirebaseAnalytics', '~> 10.24.0'
1212
pod 'FirebaseCrashlytics'
13-
pod 'Alamofire'
14-
pod 'SwiftyJSON'
13+
pod 'SwiftyJSON'/
1514
# master branch
1615
pod 'Preferences', :git => 'https://github.com/sindresorhus/Preferences.git'
1716
pod 'QRCoder'
@@ -21,11 +20,11 @@ target 'V2rayU' do
2120

2221
end
2322

24-
# fix libarclite_macosx.a need min deploy target 10.14
23+
# fix libarclite_macosx.a need min deploy target 11.0
2524
post_install do |installer|
2625
installer.pods_project.targets.each do |target|
2726
target.build_configurations.each do |config|
28-
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.14'
27+
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '11.0'
2928
end
3029
end
3130
end

Podfile.lock

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PODS:
2-
- Alamofire (4.8.2)
32
- FirebaseAnalytics (10.24.0):
43
- FirebaseAnalytics/AdIdSupport (= 10.24.0)
54
- FirebaseCore (~> 10.0)
@@ -112,26 +111,22 @@ PODS:
112111
- PromisesSwift (2.4.0):
113112
- PromisesObjC (= 2.4.0)
114113
- QRCoder (1.1.0)
115-
- Sparkle (2.6.2)
116114
- Swifter (1.4.7)
117115
- SwiftyJSON (5.0.0)
118116
- Yams (5.0.6)
119117

120118
DEPENDENCIES:
121-
- Alamofire
122119
- FirebaseAnalytics (~> 10.24.0)
123120
- FirebaseCrashlytics
124121
- MASShortcut
125122
- Preferences (from `https://github.com/sindresorhus/Preferences.git`)
126123
- QRCoder
127-
- Sparkle (~> 2.0)
128124
- Swifter
129125
- SwiftyJSON
130126
- Yams
131127

132128
SPEC REPOS:
133129
https://github.com/CocoaPods/Specs.git:
134-
- Alamofire
135130
- FirebaseAnalytics
136131
- FirebaseCore
137132
- FirebaseCoreExtension
@@ -148,7 +143,6 @@ SPEC REPOS:
148143
- PromisesObjC
149144
- PromisesSwift
150145
- QRCoder
151-
- Sparkle
152146
- Swifter
153147
- SwiftyJSON
154148
- Yams
@@ -163,7 +157,6 @@ CHECKOUT OPTIONS:
163157
:git: https://github.com/sindresorhus/Preferences.git
164158

165159
SPEC CHECKSUMS:
166-
Alamofire: ae5c501addb7afdbb13687d7f2f722c78734c2d3
167160
FirebaseAnalytics: b5efc493eb0f40ec560b04a472e3e1a15d39ca13
168161
FirebaseCore: 11dc8a16dfb7c5e3c3f45ba0e191a33ac4f50894
169162
FirebaseCoreExtension: af5fd85e817ea9d19f9a2659a376cf9cf99f03c0
@@ -181,11 +174,10 @@ SPEC CHECKSUMS:
181174
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
182175
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
183176
QRCoder: cbd2bee531cc86d286df7942334cfed94c803ae4
184-
Sparkle: a62c7dc4f410ced73beb2169cf1d3cc3f028a295
185177
Swifter: 2327ef5d872c638aebab79646ce494af508b0c8f
186178
SwiftyJSON: 36413e04c44ee145039d332b4f4e2d3e8d6c4db7
187179
Yams: e10dae147f517ed57ecae37c5e8681bdf8fcab65
188180

189-
PODFILE CHECKSUM: 071aabe40b11d56fb50a9b83f6ed47079838bdee
181+
PODFILE CHECKSUM: d61ad825ad5d61b2b98237544e21946c9babe3a0
190182

191183
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)