-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
indesign-cc.rb
62 lines (55 loc) · 2.41 KB
/
indesign-cc.rb
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
cask 'indesign-cc' do
version '11'
sha256 '1387e8180cbe61ecff2146df25c2d71dd68fa59e8828928464d20db188b3cd52'
language('cs') { 'cs_CZ' }
language('da') { 'da_DK' }
language('de') { 'de_DE' }
language('en-AE') { 'en_AE' }
language('en-GB') { 'en_GB' }
language('en-IL') { 'en_IL' }
language('en', default: true) { 'en_US' }
language('es-MX') { 'es_MX' }
language('es') { 'es_ES' }
language('fi') { 'fi_FI' }
language('fr-CA') { 'fr_CA' }
language('fr-MA') { 'fr_MA' }
language('fr') { 'fr_FR' }
language('hu') { 'hu_HU' }
language('it') { 'it_IT' }
language('ja') { 'ja_JP' }
language('ko') { 'ko_KR' }
language('nb') { 'nb_NO' }
language('nl') { 'nl_NL' }
language('pl') { 'pl_PL' }
language('pt') { 'pt_BR' }
language('ru') { 'ru_RU' }
language('sv') { 'sv_SE' }
language('tr') { 'tr_TR' }
language('uk') { 'uk_UA' }
language('zh-TW') { 'zh_TW' }
language('zh') { 'zh_CN' }
url "http://trials3.adobe.com/AdobeProducts/IDSN/#{version}/osx10/InDesign_#{version.major}_LS20.dmg",
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe InDesign CC'
homepage 'https://www.adobe.com/products/indesign.html'
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
IO.write(deployment_xml, IO.read(deployment_xml).sub(%r{>en_US<}, ">#{language}<"))
system_command "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent',
"--deploymentFile=#{deployment_xml}",
],
sudo: true
end
uninstall_preflight do
system_command "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent',
"--deploymentFile=#{staged_path}/Adobe InDesign CC 2015/deploy/remove.xml",
],
sudo: true
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'
end