Class: Msbuild::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/sapfire/msbuild/options.rb

Constant Summary collapse

PACKAGE_FORMATS =
%w[.appx .appxbundle .appxupload .msix .msixbundle .msixupload].freeze

Class Method Summary collapse

Class Method Details

.available_optionsObject



8
9
10
11
12
# File 'lib/fastlane/plugin/sapfire/msbuild/options.rb', line 8

def self.available_options
  return @options if @options

  @options = plain_options
end

.available_outputObject



14
15
16
17
18
# File 'lib/fastlane/plugin/sapfire/msbuild/options.rb', line 14

def self.available_output
  return @output if @output

  @output = plain_output
end

.plain_outputObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/fastlane/plugin/sapfire/msbuild/options.rb', line 20

def self.plain_output
  [
    ["SF_MSBUILD_PROJECT", "Path to the SLN-solution file"],
    ["SF_MSBUILD_CONFIGURATION", "Build configuration"],
    ["SF_MSBUILD_PLATFORM", "Target platform"],
    ["SF_MSBUILD_RESTORE", "Restore project prior to build the actual targets"],
    ["SF_MSBUILD_CLEAN", "Should the project be cleaned before building it?"],
    ["SF_MSBUILD_APPX_OUTPUT_PATH", "Defines the folder to store the generated package artifacts. Relative path is a root folder where project is located"],
    ["SF_MSBUILD_APPX_OUTPUT_NAME", "Defines the name of the resulting package"],
    ["SF_MSBUILD_APPX_PLATFORMS", [
      "Enables you to define the platforms to include in the bundle.",
      "It's possible to define multiple platforms divided by vertical line, e.g. 'x86|ARM'"
    ].join("\n")],
    ["SF_MSBUILD_BUILD_MODE", "Package build mode. Use `SideloadOnly` for sideloading only or `StoreUpload` for generating the .msixupload/.appxupload file"],
    ["SF_MSBUILD_SKIP_CODESIGNING", "Build without package signing"],
    ["SF_MSBUILD_JOBS_COUNT", [
      "A number of concurrent processes to use when building.",
      "Set it to -1 if you want to use up to the number of processors in the computer"
    ].join("\n")]
  ]
end