forked from bitrise-steplib/steps-cordova-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep.yml
142 lines (125 loc) · 4.2 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
title: Cordova archive
summary: Archives your Cordova project
description: |-
Archives your Cordova project.
First, the step prepare your Cordova project by calling either:
- `cordova "platform" "rm" "<platform>"`
- `cordova "platform" "add" "<platform>"`
Or:
- `cordova "prepare" "<platform>"`
Then it archives the project by calling:
- `cordova "build" "--debug|--release" "--device|--emulator" "<platform>" "--buildConfig=$BITRISE_CORDOVA_BUILD_CONFIGURATION"`
website: https://github.com/bitrise-community/steps-cordova-archive
source_code_url: https://github.com/bitrise-community/steps-cordova-archive
support_url: https://github.com/bitrise-community/steps-cordova-archive/issues
project_type_tags:
- cordova
type_tags:
- build
deps:
brew:
- name: go
- name: gradle
toolkit:
go:
package_name: github.com/bitrise-community/steps-cordova-archive
inputs:
- platform: "ios,android"
opts:
title: "Platform to use in cordova-cli commands"
description: |-
Specify this input to apply cordova-cli commands to the desired platforms only.
`cordova build [OTHER_PARAMS] <platform>`
value_options:
- "ios,android"
- "ios"
- "android"
is_required: true
- configuration: release
opts:
title: "Build command configuration"
description: |-
Specify build command configuration.
`cordova build [OTHER_PARAMS] [--release | --debug]`
value_options:
- release
- debug
is_required: true
- target: device
opts:
title: "Build command target"
description: |-
Specify build command target.
`cordova build [OTHER_PARAMS] [--device | --emulator]`
value_options:
- device
- emulator
is_required: true
- build_config: $BITRISE_CORDOVA_BUILD_CONFIGURATION
opts:
title: "Build configuration path to describe code signing properties"
description: |-
Path to the build configuration file (build.json), which describes code signing properties.
- add_platform: "true"
opts:
title: "Should add platforms as part of the prepare step?"
description: |-
Specify whether to add platforms during prepare. If false, prepare command will be used instead.
`cordova platform add <platform>` or `cordova prepare <platform>`
value_options:
- "true"
- "false"
is_required: true
- readd_platform: "true"
opts:
title: "Should remove platforms as part of the prepare step?"
description: |-
Specify whether to remove platforms and then re-add (overwrites some config.xml values).
Only applies if _"Should add platforms as prepare step?"_ is `true`.
`cordova platform rm <platform>`
value_options:
- "true"
- "false"
is_required: true
- cordova_version:
opts:
title: "Cordova version"
description: |-
The version of cordova you want to use.
If the value is set to `latest`, the step will update to the latest cordova version.
Leave this input field empty to use the preinstalled cordova version.
- workdir: $BITRISE_SOURCE_DIR
opts:
title: "Working directory"
summary: ""
description: |-
Root directory of your Cordova project, where your Cordova config.xml exists.
is_required: true
- options:
opts:
title: "Options to append to the cordova-cli build command"
description: |-
Use this input to specify custom options, to append to the end of the cordova-cli build command.
For Xcode 10 build issues add `--buildFlag="-UseModernBuildSystem=0"` to options string.
Example:
- `--browserify`
`cordova build [OTHER_PARAMS] [options]`
outputs:
- BITRISE_IPA_PATH:
opts:
title: The created ios .ipa file's path
- BITRISE_APP_DIR_PATH:
opts:
title: The created ios .app dir's path
- BITRISE_APP_PATH:
opts:
title: The created ios .app.zip file's path
- BITRISE_DSYM_DIR_PATH:
opts:
title: The created ios .dSYM dir's path
- BITRISE_DSYM_PATH:
opts:
title: The created ios .dSYM.zip file's path
- BITRISE_APK_PATH: ""
opts:
title: The created android .apk file's path