fastlane-plugin-sapfire 1.0.1 → 1.1.0
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 +4 -4
- data/lib/fastlane/plugin/sapfire/actions/app_certification_action.rb +9 -0
- data/lib/fastlane/plugin/sapfire/actions/associate_ms_store_action.rb +9 -0
- data/lib/fastlane/plugin/sapfire/actions/build_uwp_app_action.rb +4 -0
- data/lib/fastlane/plugin/sapfire/actions/ensure_dotnet_version_action.rb +7 -0
- data/lib/fastlane/plugin/sapfire/actions/ms_credentials_action.rb +15 -0
- data/lib/fastlane/plugin/sapfire/actions/msbuild_action.rb +10 -0
- data/lib/fastlane/plugin/sapfire/actions/nuget_pack_action.rb +11 -0
- data/lib/fastlane/plugin/sapfire/actions/update_uwp_signing_settings_action.rb +9 -0
- data/lib/fastlane/plugin/sapfire/actions/upload_ms_store_action.rb +11 -0
- data/lib/fastlane/plugin/sapfire/actions/upload_nuget_action.rb +13 -0
- data/lib/fastlane/plugin/sapfire/actions_base/msbuild_action_base.rb +9 -0
- data/lib/fastlane/plugin/sapfire/msbuild/options.rb +39 -0
- data/lib/fastlane/plugin/sapfire/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bdfb427e29ec64079d6c3a1331150a804195515abbc9a912ddee60ef702fb41
|
4
|
+
data.tar.gz: 7e7c780539d1764e6e69c9d1a1772b78240b8befafd5c0c8b391d9470505e915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 884d81bcc44c1c460b24e002e949c03cbd23183ec3c6750a1404f06d4ced9cdff3db6a3aed44e154bacab7ceab4624e44ca2097984c594952bac1f1b450c4128
|
7
|
+
data.tar.gz: 3aec682d1d9832129eae53ee8327ac4097b0f158950c7f6d0385a99c3e978af07be452d106fef132df5cbd6571a1becea813b42b94c5512b42148c4b562f84b1
|
@@ -36,10 +36,18 @@ module Fastlane
|
|
36
36
|
[:windows].include?(platform)
|
37
37
|
end
|
38
38
|
|
39
|
+
def self.output
|
40
|
+
[
|
41
|
+
["SF_PACKAGE", "The full path to a UWP package"],
|
42
|
+
["SF_WACK_OUTPUT_PATH", "The path where to save report output XML-file"]
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
39
46
|
def self.available_options
|
40
47
|
[
|
41
48
|
FastlaneCore::ConfigItem.new(
|
42
49
|
key: :appx_package_path,
|
50
|
+
env_name: "SF_PACKAGE",
|
43
51
|
description: "The full path to a UWP package",
|
44
52
|
optional: false,
|
45
53
|
type: String,
|
@@ -51,6 +59,7 @@ module Fastlane
|
|
51
59
|
),
|
52
60
|
FastlaneCore::ConfigItem.new(
|
53
61
|
key: :output_path,
|
62
|
+
env_name: "SF_WACK_OUTPUT_PATH",
|
54
63
|
description: "The path where to save report output XML-file",
|
55
64
|
optional: false,
|
56
65
|
type: String
|
@@ -230,10 +230,18 @@ module Fastlane
|
|
230
230
|
[:windows].include?(platform)
|
231
231
|
end
|
232
232
|
|
233
|
+
def self.output
|
234
|
+
[
|
235
|
+
["SF_PROJECT_MANIFEST", "Path to the APPX package manifest"],
|
236
|
+
["SF_APP_ID", "The Microsoft Store ID of an application"]
|
237
|
+
]
|
238
|
+
end
|
239
|
+
|
233
240
|
def self.available_options
|
234
241
|
[
|
235
242
|
FastlaneCore::ConfigItem.new(
|
236
243
|
key: :manifest,
|
244
|
+
env_name: "SF_PROJECT_MANIFEST",
|
237
245
|
description: "Path to the APPX package manifest",
|
238
246
|
optional: false,
|
239
247
|
type: String,
|
@@ -245,6 +253,7 @@ module Fastlane
|
|
245
253
|
),
|
246
254
|
FastlaneCore::ConfigItem.new(
|
247
255
|
key: :app_id,
|
256
|
+
env_name: "SF_APP_ID",
|
248
257
|
description: "The Microsoft Store ID of an application",
|
249
258
|
optional: false,
|
250
259
|
type: String,
|
@@ -94,10 +94,17 @@ module Fastlane
|
|
94
94
|
true
|
95
95
|
end
|
96
96
|
|
97
|
+
def self.output
|
98
|
+
[
|
99
|
+
["SF_ENSURE_DOTNET_VERSION", ".NET version to verify that is installed"]
|
100
|
+
]
|
101
|
+
end
|
102
|
+
|
97
103
|
def self.available_options
|
98
104
|
[
|
99
105
|
FastlaneCore::ConfigItem.new(
|
100
106
|
key: :version,
|
107
|
+
env_name: "SF_ENSURE_DOTNET_VERSION",
|
101
108
|
description: ".NET version to verify that is installed",
|
102
109
|
optional: false,
|
103
110
|
type: String,
|
@@ -33,10 +33,21 @@ module Fastlane
|
|
33
33
|
[:windows].include?(platform)
|
34
34
|
end
|
35
35
|
|
36
|
+
def self.output
|
37
|
+
[
|
38
|
+
["SF_MS_USERNAME", "The username of Azure AD account"],
|
39
|
+
["SF_MS_PASSWORD", "The password of Azure AD account"],
|
40
|
+
["SF_MS_TENANT_ID", "The unique identifier of the Azure AD instance"],
|
41
|
+
["SF_MS_CLIENT_ID", "The ID of an application that would be associate to get working with Microsoft account"],
|
42
|
+
["SF_MS_CLIENT_SECRET", "The unique secret string of an application that can be generated in Microsoft Partner Center"]
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
36
46
|
def self.available_options
|
37
47
|
[
|
38
48
|
FastlaneCore::ConfigItem.new(
|
39
49
|
key: :username,
|
50
|
+
env_name: "SF_MS_USERNAME",
|
40
51
|
description: "The username of Azure AD account",
|
41
52
|
optional: false,
|
42
53
|
type: String,
|
@@ -46,6 +57,7 @@ module Fastlane
|
|
46
57
|
),
|
47
58
|
FastlaneCore::ConfigItem.new(
|
48
59
|
key: :password,
|
60
|
+
env_name: "SF_MS_PASSWORD",
|
49
61
|
description: "The password of Azure AD account",
|
50
62
|
optional: false,
|
51
63
|
type: String,
|
@@ -55,6 +67,7 @@ module Fastlane
|
|
55
67
|
),
|
56
68
|
FastlaneCore::ConfigItem.new(
|
57
69
|
key: :tenant_id,
|
70
|
+
env_name: "SF_MS_TENANT_ID",
|
58
71
|
description: "The unique identifier of the Azure AD instance",
|
59
72
|
optional: false,
|
60
73
|
type: String,
|
@@ -64,6 +77,7 @@ module Fastlane
|
|
64
77
|
),
|
65
78
|
FastlaneCore::ConfigItem.new(
|
66
79
|
key: :client_id,
|
80
|
+
env_name: "SF_MS_CLIENT_ID",
|
67
81
|
description: "The ID of an application that would be associate to get working with Microsoft account",
|
68
82
|
optional: false,
|
69
83
|
type: String,
|
@@ -73,6 +87,7 @@ module Fastlane
|
|
73
87
|
),
|
74
88
|
FastlaneCore::ConfigItem.new(
|
75
89
|
key: :client_secret,
|
90
|
+
env_name: "SF_MS_CLIENT_SECRET",
|
76
91
|
description: "The unique secret string of an application that can be generated in Microsoft Partner Center",
|
77
92
|
optional: false,
|
78
93
|
type: String,
|
@@ -37,6 +37,16 @@ module Fastlane
|
|
37
37
|
]
|
38
38
|
end
|
39
39
|
|
40
|
+
def self.rejected_output
|
41
|
+
%w[
|
42
|
+
SF_MSBUILD_APPX_OUTPUT_PATH
|
43
|
+
SF_MSBUILD_APPX_OUTPUT_NAME
|
44
|
+
SF_MSBUILD_APPX_PLATFORMS
|
45
|
+
SF_MSBUILD_BUILD_MODE
|
46
|
+
SF_MSBUILD_SKIP_CODESIGNING
|
47
|
+
]
|
48
|
+
end
|
49
|
+
|
40
50
|
def self.category
|
41
51
|
:building
|
42
52
|
end
|
@@ -38,6 +38,17 @@ module Fastlane
|
|
38
38
|
]
|
39
39
|
end
|
40
40
|
|
41
|
+
def self.rejected_output
|
42
|
+
%w[
|
43
|
+
SF_MSBUILD_RESTORE
|
44
|
+
SF_MSBUILD_APPX_OUTPUT_PATH
|
45
|
+
SF_MSBUILD_APPX_OUTPUT_NAME
|
46
|
+
SF_MSBUILD_APPX_PLATFORMS
|
47
|
+
SF_MSBUILD_BUILD_MODE
|
48
|
+
SF_MSBUILD_SKIP_CODESIGNING
|
49
|
+
]
|
50
|
+
end
|
51
|
+
|
41
52
|
def self.category
|
42
53
|
:building
|
43
54
|
end
|
@@ -35,10 +35,18 @@ module Fastlane
|
|
35
35
|
[:windows].include?(platform)
|
36
36
|
end
|
37
37
|
|
38
|
+
def self.output
|
39
|
+
[
|
40
|
+
["SF_UWP_CERTIFICATE_PATH", "Path to the certificate to use"],
|
41
|
+
["SF_UWP_CERTIFICATE_PASSWORD", "The password for the private key in the certificate"]
|
42
|
+
]
|
43
|
+
end
|
44
|
+
|
38
45
|
def self.available_options
|
39
46
|
[
|
40
47
|
FastlaneCore::ConfigItem.new(
|
41
48
|
key: :certificate,
|
49
|
+
env_name: "SF_UWP_CERTIFICATE_PATH",
|
42
50
|
description: "Path to the certificate to use",
|
43
51
|
optional: false,
|
44
52
|
type: String,
|
@@ -50,6 +58,7 @@ module Fastlane
|
|
50
58
|
),
|
51
59
|
FastlaneCore::ConfigItem.new(
|
52
60
|
key: :password,
|
61
|
+
env_name: "SF_UWP_CERTIFICATE_PASSWORD",
|
53
62
|
description: "The password for the private key in the certificate",
|
54
63
|
optional: true,
|
55
64
|
default_value: "",
|
@@ -92,10 +92,19 @@ module Fastlane
|
|
92
92
|
[:windows].include?(platform)
|
93
93
|
end
|
94
94
|
|
95
|
+
def self.output
|
96
|
+
[
|
97
|
+
["SF_PUSHING_TIMEOUT", "The timeout for pushing to a server in seconds"],
|
98
|
+
["SF_APP_ID", "The Microsoft Store ID of an application"],
|
99
|
+
["SF_PACKAGE", "The file path to the package to be uploaded"]
|
100
|
+
]
|
101
|
+
end
|
102
|
+
|
95
103
|
def self.available_options
|
96
104
|
[
|
97
105
|
FastlaneCore::ConfigItem.new(
|
98
106
|
key: :timeout,
|
107
|
+
env_name: "SF_PUSHING_TIMEOUT",
|
99
108
|
description: "The timeout for pushing to a server in seconds",
|
100
109
|
optional: true,
|
101
110
|
default_value: 0,
|
@@ -103,6 +112,7 @@ module Fastlane
|
|
103
112
|
),
|
104
113
|
FastlaneCore::ConfigItem.new(
|
105
114
|
key: :app_id,
|
115
|
+
env_name: "SF_APP_ID",
|
106
116
|
description: "The Microsoft Store ID of an application",
|
107
117
|
optional: false,
|
108
118
|
type: String,
|
@@ -119,6 +129,7 @@ module Fastlane
|
|
119
129
|
),
|
120
130
|
FastlaneCore::ConfigItem.new(
|
121
131
|
key: :path,
|
132
|
+
env_name: "SF_PACKAGE",
|
122
133
|
description: "The file path to the package to be uploaded",
|
123
134
|
optional: false,
|
124
135
|
type: String,
|
@@ -38,10 +38,20 @@ module Fastlane
|
|
38
38
|
true
|
39
39
|
end
|
40
40
|
|
41
|
+
def self.output
|
42
|
+
[
|
43
|
+
["SF_NUGET_API_KEY", "The API key for the server"],
|
44
|
+
["SF_NUGET_SERVER", "The server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP"],
|
45
|
+
["SF_PUSHING_TIMEOUT", "The timeout for pushing to a server in seconds"],
|
46
|
+
["SF_PACKAGE", "The file path to the package to be uploaded"],
|
47
|
+
]
|
48
|
+
end
|
49
|
+
|
41
50
|
def self.available_options
|
42
51
|
[
|
43
52
|
FastlaneCore::ConfigItem.new(
|
44
53
|
key: :api_key,
|
54
|
+
env_name: "SF_NUGET_API_KEY",
|
45
55
|
description: "The API key for the server",
|
46
56
|
optional: false,
|
47
57
|
type: String,
|
@@ -51,12 +61,14 @@ module Fastlane
|
|
51
61
|
),
|
52
62
|
FastlaneCore::ConfigItem.new(
|
53
63
|
key: :source,
|
64
|
+
env_name: "SF_NUGET_SERVER",
|
54
65
|
description: "The server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP",
|
55
66
|
optional: false,
|
56
67
|
type: String
|
57
68
|
),
|
58
69
|
FastlaneCore::ConfigItem.new(
|
59
70
|
key: :timeout,
|
71
|
+
env_name: "SF_PUSHING_TIMEOUT",
|
60
72
|
description: "The timeout for pushing to a server in seconds",
|
61
73
|
optional: true,
|
62
74
|
default_value: 0,
|
@@ -64,6 +76,7 @@ module Fastlane
|
|
64
76
|
),
|
65
77
|
FastlaneCore::ConfigItem.new(
|
66
78
|
key: :path,
|
79
|
+
env_name: "SF_PACKAGE",
|
67
80
|
description: "The file path to the package to be uploaded",
|
68
81
|
optional: false,
|
69
82
|
type: String,
|
@@ -37,6 +37,15 @@ module Fastlane
|
|
37
37
|
rejected_options_array.include?(option.key)
|
38
38
|
end
|
39
39
|
end
|
40
|
+
|
41
|
+
def self.output
|
42
|
+
rejected_output_array = rejected_output
|
43
|
+
return Msbuild::Options.available_output if rejected_output_array.nil?
|
44
|
+
|
45
|
+
Msbuild::Options.available_output.reject do |output|
|
46
|
+
rejected_output_array.include?(output[0])
|
47
|
+
end
|
48
|
+
end
|
40
49
|
end
|
41
50
|
end
|
42
51
|
end
|
@@ -11,10 +11,39 @@ module Msbuild
|
|
11
11
|
@options = plain_options
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.available_output
|
15
|
+
return @output if @output
|
16
|
+
|
17
|
+
@output = plain_output
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.plain_output
|
21
|
+
[
|
22
|
+
["SF_MSBUILD_PROJECT", "Path to the SLN-solution file"],
|
23
|
+
["SF_MSBUILD_CONFIGURATION", "Build configuration"],
|
24
|
+
["SF_MSBUILD_PLATFORM", "Target platform"],
|
25
|
+
["SF_MSBUILD_RESTORE", "Restore project prior to build the actual targets"],
|
26
|
+
["SF_MSBUILD_CLEAN", "Should the project be cleaned before building it?"],
|
27
|
+
["SF_MSBUILD_APPX_OUTPUT_PATH", "Defines the folder to store the generated package artifacts. Relative path is a root folder where project is located"],
|
28
|
+
["SF_MSBUILD_APPX_OUTPUT_NAME", "Defines the name of the resulting package"],
|
29
|
+
["SF_MSBUILD_APPX_PLATFORMS", [
|
30
|
+
"Enables you to define the platforms to include in the bundle.",
|
31
|
+
"It's possible to define multiple platforms divided by vertical line, e.g. 'x86|ARM'"
|
32
|
+
].join("\n")],
|
33
|
+
["SF_MSBUILD_BUILD_MODE", "Package build mode. Use `SideloadOnly` for sideloading only or `StoreUpload` for generating the .msixupload/.appxupload file"],
|
34
|
+
["SF_MSBUILD_SKIP_CODESIGNING", "Build without package signing"],
|
35
|
+
["SF_MSBUILD_JOBS_COUNT", [
|
36
|
+
"A number of concurrent processes to use when building.",
|
37
|
+
"Set it to -1 if you want to use up to the number of processors in the computer"
|
38
|
+
].join("\n")]
|
39
|
+
]
|
40
|
+
end
|
41
|
+
|
14
42
|
def self.plain_options
|
15
43
|
[
|
16
44
|
FastlaneCore::ConfigItem.new(
|
17
45
|
key: :project,
|
46
|
+
env_name: "SF_MSBUILD_PROJECT",
|
18
47
|
description: "Path to the SLN-solution file",
|
19
48
|
optional: false,
|
20
49
|
type: String,
|
@@ -26,18 +55,21 @@ module Msbuild
|
|
26
55
|
),
|
27
56
|
FastlaneCore::ConfigItem.new(
|
28
57
|
key: :configuration,
|
58
|
+
env_name: "SF_MSBUILD_CONFIGURATION",
|
29
59
|
description: "Build configuration",
|
30
60
|
optional: false,
|
31
61
|
type: String
|
32
62
|
),
|
33
63
|
FastlaneCore::ConfigItem.new(
|
34
64
|
key: :platform,
|
65
|
+
env_name: "SF_MSBUILD_PLATFORM",
|
35
66
|
description: "Target platform",
|
36
67
|
optional: false,
|
37
68
|
type: String
|
38
69
|
),
|
39
70
|
FastlaneCore::ConfigItem.new(
|
40
71
|
key: :restore,
|
72
|
+
env_name: "SF_MSBUILD_RESTORE",
|
41
73
|
description: "Restore project prior to build the actual targets",
|
42
74
|
optional: true,
|
43
75
|
default_value: false,
|
@@ -45,6 +77,7 @@ module Msbuild
|
|
45
77
|
),
|
46
78
|
FastlaneCore::ConfigItem.new(
|
47
79
|
key: :clean,
|
80
|
+
env_name: "SF_MSBUILD_CLEAN",
|
48
81
|
description: "Should the project be cleaned before building it?",
|
49
82
|
optional: true,
|
50
83
|
default_value: false,
|
@@ -52,6 +85,7 @@ module Msbuild
|
|
52
85
|
),
|
53
86
|
FastlaneCore::ConfigItem.new(
|
54
87
|
key: :appx_output_path,
|
88
|
+
env_name: "SF_MSBUILD_APPX_OUTPUT_PATH",
|
55
89
|
description: "Defines the folder to store the generated package artifacts. Relative path is a root folder where project is located",
|
56
90
|
optional: true,
|
57
91
|
default_value: "",
|
@@ -59,6 +93,7 @@ module Msbuild
|
|
59
93
|
),
|
60
94
|
FastlaneCore::ConfigItem.new(
|
61
95
|
key: :appx_output_name,
|
96
|
+
env_name: "SF_MSBUILD_APPX_OUTPUT_NAME",
|
62
97
|
description: "Defines the name of the resulting package",
|
63
98
|
optional: true,
|
64
99
|
default_value: "",
|
@@ -66,6 +101,7 @@ module Msbuild
|
|
66
101
|
),
|
67
102
|
FastlaneCore::ConfigItem.new(
|
68
103
|
key: :appx_bundle_platforms,
|
104
|
+
env_name: "SF_MSBUILD_APPX_PLATFORMS",
|
69
105
|
description: [
|
70
106
|
"Enables you to define the platforms to include in the bundle.",
|
71
107
|
"It's possible to define multiple platforms divided by vertical line, e.g. 'x86|ARM'"
|
@@ -75,12 +111,14 @@ module Msbuild
|
|
75
111
|
),
|
76
112
|
FastlaneCore::ConfigItem.new(
|
77
113
|
key: :build_mode,
|
114
|
+
env_name: "SF_MSBUILD_BUILD_MODE",
|
78
115
|
description: "Package build mode. Use `SideloadOnly` for sideloading only or `StoreUpload` for generating the .msixupload/.appxupload file",
|
79
116
|
optional: false,
|
80
117
|
type: String
|
81
118
|
),
|
82
119
|
FastlaneCore::ConfigItem.new(
|
83
120
|
key: :skip_codesigning,
|
121
|
+
env_name: "SF_MSBUILD_SKIP_CODESIGNING",
|
84
122
|
description: "Build without package signing",
|
85
123
|
optional: true,
|
86
124
|
default_value: false,
|
@@ -88,6 +126,7 @@ module Msbuild
|
|
88
126
|
),
|
89
127
|
FastlaneCore::ConfigItem.new(
|
90
128
|
key: :jobs,
|
129
|
+
env_name: "SF_MSBUILD_JOBS_COUNT",
|
91
130
|
description: [
|
92
131
|
"A number of concurrent processes to use when building.",
|
93
132
|
"Set it to -1 if you want to use up to the number of processors in the computer"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-sapfire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CheeryLee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.4.10
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: A bunch of fastlane actions to work with MSBuild, NuGet and Microsoft Store
|