fastlane-plugin-setapp 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ebcd0329e2cf88ee87fa50ba0bd11552e56071cba874314e3261b74690ccbbf
|
4
|
+
data.tar.gz: 7279088098b1a1169b8e37c758143cf6300f7bd58c2f2f10c8458b57e1f9b1d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eefc26ef409d9186720eb309877ac32c22907012eec7290298c2669ff070dffb7252cab22a24c8af292d7e54e0a5048c7fdf675e3785b9052d290cb1edf2bc4
|
7
|
+
data.tar.gz: 610b515fa89f178a13f77ea2609bb32684be716222b4fd25bc3c3c6d0166b2a0d585a07a0b3c5eb0ae25f5cb4dec7c6e9619a155af224cc892edca5440852a24
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ upload_setapp_build(
|
|
49
49
|
api_token: '...', # Your Setapp API token
|
50
50
|
build_path: '...', # The path to archive with a new Setapp build
|
51
51
|
release_notes: '...', # Text or path to a file that contains release notes for a new version
|
52
|
-
version_status: review, # Version status. It can be `draft` or `review`
|
52
|
+
version_status: 'review', # Version status. It can be `draft` or `review`
|
53
53
|
release_on_approval: true # Indicates whether Setapp must publish a new version after review
|
54
54
|
)
|
55
55
|
```
|
@@ -12,7 +12,6 @@ module Fastlane
|
|
12
12
|
release_on_approval = params[:release_on_approval]
|
13
13
|
file_dir = File.dirname(__FILE__)
|
14
14
|
UI.user_error!("Available options for version_status: [draft, review].") unless ['draft', 'review'].include?(version_status)
|
15
|
-
UI.user_error!("Available options for release_on_approval: [true, false].") unless ['true', 'false'].include?(release_on_approval)
|
16
15
|
UI.message("The build at path #{build_path} will be uploaded to Setapp")
|
17
16
|
exit_code = system("bash #{file_dir}/../helper/setapp_build_uploader.sh --token #{api_token} --path #{build_path} --notes #{release_notes} --status #{version_status} --release-on-approval #{release_on_approval}")
|
18
17
|
UI.user_error!("Uploading error occured. Try again.") if exit_code != true
|
@@ -73,7 +72,7 @@ module Fastlane
|
|
73
72
|
env_name: "SETAPP_RELEASE_ON_APPROVAL",
|
74
73
|
description: "Indicate whether Setapp must release new version automatically after review. Available options: `true`, `false`",
|
75
74
|
optional: false,
|
76
|
-
type:
|
75
|
+
type: Boolean
|
77
76
|
)
|
78
77
|
]
|
79
78
|
end
|
@@ -99,7 +99,7 @@ function validate_server_response() {
|
|
99
99
|
local response_code=${server_response##*HTTPSTATUS:}
|
100
100
|
local response_body=$(echo ${server_response%%HTTPSTATUS*})
|
101
101
|
|
102
|
-
if [ $response_code -eq
|
102
|
+
if [ $response_code -eq 202 ]; then
|
103
103
|
echo "✅ The app version is uploaded. All checks are passed."
|
104
104
|
elif [ $response_code -eq 401 ]; then
|
105
105
|
die "⚠️ Something went wrong with your API token.\n${response_body}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-setapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Setapp Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|