This commit is contained in:
yanue 2023-08-07 17:07:38 +02:00
parent b31598a61c
commit a51a704c3f
12 changed files with 27 additions and 30 deletions

4
.env Normal file
View File

@ -0,0 +1,4 @@
API_TOKEN=f99eefbd91c5f9917125e1adcd3786f5b2520e00
BUILD_NUMBER=3.8.0
VERSION=3.8.0
dsa_signature="Y3fJ8f5ylk9hG9eiLRam66tuArk9MNwF4Ey65dG6BptIa0tLu/VSvSWMJF0o15uMmg7HpCETDqhVuRe6c1YPBQ=="

1
.gitignore vendored
View File

@ -2,7 +2,6 @@ V2rayU.xcodeproj/project.xcworkspace/xcuserdata
V2rayU.xcodeproj/xcuserdata V2rayU.xcodeproj/xcuserdata
Pods Pods
V2rayU.xcworkspace/xcuserdata V2rayU.xcworkspace/xcuserdata
Build/v2ray-core
*.DS_Store *.DS_Store
.idea .idea
*.app *.app

View File

@ -35,7 +35,9 @@ do
echo "appdmg V2rayU-64.dmg" echo "appdmg V2rayU-64.dmg"
rm -f V2rayU-64.dmg rm -f V2rayU-64.dmg
appdmg appdmg.json "V2rayU-64.dmg" appdmg appdmg.json "V2rayU-64.dmg"
rm -fr release/V2rayU.app #rm -fr release/V2rayU.app
./sign_update "V2rayU-64.dmg"
break break
;; ;;
"arm64") "arm64")
@ -46,7 +48,9 @@ do
echo "appdmg V2rayU-arm64.dmg" echo "appdmg V2rayU-arm64.dmg"
rm -f V2rayU-arm64.dmg rm -f V2rayU-arm64.dmg
appdmg appdmg.json "V2rayU-arm64.dmg" appdmg appdmg.json "V2rayU-arm64.dmg"
rm -fr release/V2rayU.app #rm -fr release/V2rayU.app
./sign_update "V2rayU-64.dmg"
break break
;; ;;
*) echo "请选择";; *) echo "请选择";;

View File

@ -210,7 +210,7 @@ function createDmgByAppdmg() {
appdmg appdmg.json ${DMG_FINAL} appdmg appdmg.json ${DMG_FINAL}
# appcast sign update # appcast sign update
# ${AppCastDir}/bin/sign_update ${DMG_FINAL} ${AppCastDir}/bin/sign_update ${DMG_FINAL}
# umount "/Volumes/${APP_NAME}" # umount "/Volumes/${APP_NAME}"
} }

BIN
Build/sign.p12 Normal file

Binary file not shown.

View File

@ -5,17 +5,19 @@
# #
# Created by yanue on 2023/8/1. # Created by yanue on 2023/8/1.
# Copyright © 2023 yanue. All rights reserved. # Copyright © 2023 yanue. All rights reserved.
set -ex
TOKEN=$1 TOKEN=$1
RELEASE_ID=$2 release_id=$2
echo "release ${RELEASE_ID}, token $TOKEN" echo "token $TOKEN, release ${RELEASE_ID}"
curl -X "PATCH" "https://api.appcenter.ms/v0.1/apps/V2rayU/releases/${RELEASE_ID}" \ curl -X "PATCH" "https://api.appcenter.ms/v0.1/apps/yanue/V2rayU/releases/${release_id}" \
-H "X-API-Token: $TOKEN" \ -H "X-API-Token: $TOKEN" \
-H 'Content-Type: application/json; charset=utf-8' \ -H 'Content-Type: application/json; charset=utf-8' \
-d $"{ -d '{
\"metadata\": { "release_notes": "test",
\"ed_signature\": \"PW8pDnr5VZkmC93gZjUDlHI8gkJSspPoDU3DdhsMkps\" "metadata": {
} "ed_signature": "PW8pDnr5VZkmC93gZjUDlHI8gkJSspPoDU3DdhsMkps"
}" }
}'

BIN
Build/sign_update Executable file

Binary file not shown.

View File

@ -39,7 +39,6 @@
66AD5335241497000070529C /* Shortcut.m in Sources */ = {isa = PBXBuildFile; fileRef = 66AD5330241496FF0070529C /* Shortcut.m */; }; 66AD5335241497000070529C /* Shortcut.m in Sources */ = {isa = PBXBuildFile; fileRef = 66AD5330241496FF0070529C /* Shortcut.m */; };
66BC2B89228C589E00FBB716 /* V2raySubscribe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66BC2B88228C589E00FBB716 /* V2raySubscribe.swift */; }; 66BC2B89228C589E00FBB716 /* V2raySubscribe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66BC2B88228C589E00FBB716 /* V2raySubscribe.swift */; };
66C3F2762A795D2D004F1234 /* Pluginfile in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F2752A795D2C004F1234 /* Pluginfile */; }; 66C3F2762A795D2D004F1234 /* Pluginfile in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F2752A795D2C004F1234 /* Pluginfile */; };
66C3F2792A795DD5004F1234 /* Appfile in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F2772A795DD5004F1234 /* Appfile */; };
66C3F27A2A795DD5004F1234 /* Fastfile in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F2782A795DD5004F1234 /* Fastfile */; }; 66C3F27A2A795DD5004F1234 /* Fastfile in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F2782A795DD5004F1234 /* Fastfile */; };
66C3F27C2A795F44004F1234 /* Readme.md in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F27B2A795F44004F1234 /* Readme.md */; }; 66C3F27C2A795F44004F1234 /* Readme.md in Resources */ = {isa = PBXBuildFile; fileRef = 66C3F27B2A795F44004F1234 /* Readme.md */; };
66F07CF9236D79540088A4AE /* ping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66F07CF8236D79540088A4AE /* ping.swift */; }; 66F07CF9236D79540088A4AE /* ping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66F07CF8236D79540088A4AE /* ping.swift */; };
@ -160,7 +159,6 @@
66BC2B88228C589E00FBB716 /* V2raySubscribe.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = V2raySubscribe.swift; sourceTree = "<group>"; }; 66BC2B88228C589E00FBB716 /* V2raySubscribe.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = V2raySubscribe.swift; sourceTree = "<group>"; };
66C3F2732A795A86004F1234 /* sign.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = sign.sh; sourceTree = "<group>"; }; 66C3F2732A795A86004F1234 /* sign.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = sign.sh; sourceTree = "<group>"; };
66C3F2752A795D2C004F1234 /* Pluginfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Pluginfile; sourceTree = "<group>"; }; 66C3F2752A795D2C004F1234 /* Pluginfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Pluginfile; sourceTree = "<group>"; };
66C3F2772A795DD5004F1234 /* Appfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Appfile; sourceTree = "<group>"; };
66C3F2782A795DD5004F1234 /* Fastfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Fastfile; sourceTree = "<group>"; }; 66C3F2782A795DD5004F1234 /* Fastfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Fastfile; sourceTree = "<group>"; };
66C3F27B2A795F44004F1234 /* Readme.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Readme.md; sourceTree = "<group>"; }; 66C3F27B2A795F44004F1234 /* Readme.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Readme.md; sourceTree = "<group>"; };
66C5B194240B58B8008A22CA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = ../en.lproj/PreferenceAdvance.strings; sourceTree = "<group>"; }; 66C5B194240B58B8008A22CA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = ../en.lproj/PreferenceAdvance.strings; sourceTree = "<group>"; };
@ -348,7 +346,6 @@
66C3F2742A795D2C004F1234 /* fastlane */ = { 66C3F2742A795D2C004F1234 /* fastlane */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
66C3F2772A795DD5004F1234 /* Appfile */,
66C3F2782A795DD5004F1234 /* Fastfile */, 66C3F2782A795DD5004F1234 /* Fastfile */,
66C3F2752A795D2C004F1234 /* Pluginfile */, 66C3F2752A795D2C004F1234 /* Pluginfile */,
66C3F27B2A795F44004F1234 /* Readme.md */, 66C3F27B2A795F44004F1234 /* Readme.md */,
@ -545,7 +542,6 @@
6610ECB721742AFD008FC401 /* MainMenu.xib in Resources */, 6610ECB721742AFD008FC401 /* MainMenu.xib in Resources */,
66107B8622DEDBE4002FFB60 /* Localizable.strings in Resources */, 66107B8622DEDBE4002FFB60 /* Localizable.strings in Resources */,
66F411B521CA8921007AAC10 /* cmd.sh in Resources */, 66F411B521CA8921007AAC10 /* cmd.sh in Resources */,
66C3F2792A795DD5004F1234 /* Appfile in Resources */,
664EB377216C9A5F00B6AE0D /* Assets.xcassets in Resources */, 664EB377216C9A5F00B6AE0D /* Assets.xcassets in Resources */,
66C3F27A2A795DD5004F1234 /* Fastfile in Resources */, 66C3F27A2A795DD5004F1234 /* Fastfile in Resources */,
66FEAD53217EE14C009DECF9 /* ConfigWindow.xib in Resources */, 66FEAD53217EE14C009DECF9 /* ConfigWindow.xib in Resources */,

View File

@ -28,7 +28,7 @@ lane :upload do
version: ENV["VERSION"], version: ENV["VERSION"],
app_os: 'macOS', app_os: 'macOS',
file: "./Build/V2rayU-64.dmg", file: "./Build/V2rayU-64.dmg",
dsa_signature: "PW8pDnr5VZkmC93gZjUDlHI8gkJSspPoDU3DdhsMkps" dsa_signature: ENV["dsa_signature"]
) )
end end

View File

@ -3,4 +3,3 @@
# Ensure this file is checked in to source control! # Ensure this file is checked in to source control!
gem 'fastlane-plugin-appcenter' gem 'fastlane-plugin-appcenter'
gem 'fastlane-plugin-dmg'

View File

@ -19,10 +19,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
[bundle exec] fastlane build [bundle exec] fastlane build
``` ```
```
gem install aws-partitions public_suffix addressable --user-install
```
### upload ### upload
```sh ```sh
@ -39,14 +35,6 @@ gem install aws-partitions public_suffix addressable --user-install
### make_dmg
```sh
[bundle exec] fastlane make_dmg
```
### addKeyChain ### addKeyChain
```sh ```sh

View File

@ -4,5 +4,10 @@
<testcase classname="fastlane.lanes" name="0: appcenter_upload" time="61.092945">
</testcase>
</testsuite> </testsuite>
</testsuites> </testsuites>