File tree Expand file tree Collapse file tree 5 files changed +4
-5
lines changed
LocalDebugging/MyCloudFunction Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let package = Package(
2222 dependencies: [
2323 // This is the dependency on the swift-tencent-scf-runtime library.
2424 // In real-world projects, this would say:
25- // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1 ")
25+ // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3 ")
2626 . package ( name: " swift-tencent-scf-runtime " , path: " ../.. " ) ,
2727 ] ,
2828 targets: [
Original file line number Diff line number Diff line change @@ -59,5 +59,4 @@ function_name=${function_name:-SwiftSample} # default for easy testing
5959read -p " Cloud Function region (eg: ap-beijing): " scf_region
6060scf_region=${scf_region:- ap-beijing} # default for easy testing
6161
62- tccli scf UpdateFunctionConfiguration --region " $scf_region " --FunctionName " $function_name " --Runtime " CustomRuntime" --InitTimeout 3
6362tccli scf UpdateFunctionCode --region " $scf_region " --FunctionName " $function_name " --Handler " swift.main" --CodeSource " Cos" --CosBucketName " $cos_bucket " --CosBucketRegion " $cos_region " --CosObjectName $executable .zip
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ let package = Package(
1313 dependencies: [
1414 // This is the dependency on the swift-tencent-scf-runtime library.
1515 // In real-world projects this would say:
16- // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1 ")
16+ // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3 ")
1717 . package ( name: " swift-tencent-scf-runtime " , path: " ../../.. " ) ,
1818 . package ( name: " Shared " , path: " ../Shared " ) ,
1919 ] ,
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ coscmd -b "$cos_bucket" -r "$cos_region" upload ".build/scf/$executable/cloud-fu
6464echo " -------------------------------------------------------------------------"
6565echo " Updating \" $function_name \" to the latest \" $executable \" "
6666echo " -------------------------------------------------------------------------"
67- tccli scf UpdateFunctionConfiguration --region " $scf_region " --FunctionName " $function_name " --Runtime " CustomRuntime" --InitTimeout 3
6867tccli scf UpdateFunctionCode --region " $scf_region " --FunctionName " $function_name " --Handler " swift.main" --CodeSource " Cos" --CosBucketName " $cos_bucket " --CosBucketRegion " $cos_region " --CosObjectName $executable .zip
68+ echo " done"
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ let package = Package(
4040 .executable (name : " MyCloudFunction" , targets : [" MyCloudFunction" ]),
4141 ],
4242 dependencies : [
43- .package (url : " https://github.com/stevapple/swift-tencent-scf-runtime.git" , from : " 0.0.1 " ),
43+ .package (url : " https://github.com/stevapple/swift-tencent-scf-runtime.git" , from : " 0.0.3 " ),
4444 ],
4545 targets : [
4646 .target (name : " MyCloudFunction" , dependencies : [
You can’t perform that action at this time.
0 commit comments