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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
# File 'lib/fastlane/plugin/create_dmg/actions/create_dmg_action.rb', line 85
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :source,
env_name: "CREATE_DMG_SOURCE",
description: "Path to the folder or file to be archived to dmg",
optional: false,
type: String,
verify_block: proc do |value|
UI.user_error!("Could not find folder at #{value}") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :output_filename,
env_name: "CREATE_DMG_OUTPUT_FILENAME",
description: "Path to the folder to be archived to dmg",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :volume_name,
env_name: "CREATE_DMG_VOLUME_NAME",
description: "Volume name displayed in the Finder sidebar and window title",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :volume_icon,
env_name: "CREATE_DMG_VOLUME_ICON",
description: "Volume icon (*.incs)",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :volume_format,
env_name: "CREATE_DMG_VOLUME_FORMAT",
description: "The final image format. 'UDZO' or 'UDBZ'",
optional: true,
type: String,
default_value: 'UDZO',
verify_block: proc do |value|
UI.user_error!("Could not find folder at '#{value}'") unless ['UDZO', 'UDBZ'].include?(value)
end),
FastlaneCore::ConfigItem.new(key: :volume_size,
env_name: "CREATE_DMG_VOLUME_SIZE",
description: "Disk image size (in MB)",
optional: true,
type: Integer),
FastlaneCore::ConfigItem.new(key: :window_position,
env_name: "CREATE_DMG_WINDOW_POSITION",
description: "Position of the disk image window on the screen X Y coordinates. E.g. '420 150'",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :window_size,
env_name: "CREATE_DMG_WINDOW_SIZE",
description: "Size of the disk image window on the screen WIDTH HEIGHT. E.g. '480 320'",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :background,
env_name: "CREATE_DMG_BACKGROUND",
description: "Disk Image folder background image (png, gif, jpg)",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :icon_size,
env_name: "CREATE_DMG_ICON_SIZE",
description: "Icon size inside the DMG folder. Up to 128",
optional: true,
type: Integer),
FastlaneCore::ConfigItem.new(key: :text_size,
env_name: "CREATE_DMG_TEXT_SIZE",
description: "Text size inside the DMG folder (10-16)",
optional: true,
type: Integer),
FastlaneCore::ConfigItem.new(key: :source_icon_position,
env_name: "CREATE_DMG_SOURCE_ICON_POSITION",
description: "Position of the file's icon 'X Y'. E.g. '10 10'",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :hide_source_extension,
env_name: "CREATE_DMG_HIDE_SOURCE_EXTENSION",
description: "Hide the source extension",
optional: true,
type: Boolean),
FastlaneCore::ConfigItem.new(key: :applications_folder_position,
env_name: "CREATE_DMG_APPLICATIONS_FOLDER_ICON_POSITION",
description: "Position of the /Applications folder icon 'X Y'. E.g. '150 10'",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :quick_look_folder_position,
env_name: "CREATE_DMG_SOURCE_ICON_POSITION",
description: "Position of the QuickLook install folder icon 'X Y'. E.g. '150 150'",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :eula_filename,
env_name: "CREATE_DMG_EULA_FILENAME",
description: "A path to the end-user license agreement file",
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :addiional_files,
env_name: "CREATE_DMG_ADDITIONAL_FILES",
description: "A list of files to add '<target_name> <file>|<folder> <x> <y>'. E.g. 'Another.app Second.app 200 200'",
optional: true,
type: Array),
FastlaneCore::ConfigItem.new(key: :hdiutil_verbose,
env_name: "CREATE_DMG_HDUTIL_VERBOSE",
description: "Execute hdiutil in verbose mode",
conflicting_options: [:hdiutil_quiet],
optional: true,
type: Boolean),
FastlaneCore::ConfigItem.new(key: :hdiutil_quiet,
env_name: "CREATE_DMG_HDUTIL_QUIET",
description: "Execute hdiutil in quiet mode",
conflicting_options: [:hdiutil_verbose],
optional: true,
type: Boolean),
FastlaneCore::ConfigItem.new(key: :hdiutil_sandbox_safe,
env_name: "CREATE_DMG_HDUTIL_SANDBOX_SAFE",
description: "Execute hdiutil with sandbox compatibility and do not bless. Some options are unavailable if this options is set to true",
optional: true,
type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :verbose,
env_name: "CREATE_DMG_VERBOSE",
description: "Whether to log create-dmg output",
optional: true,
type: Boolean)
]
end
|