-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateScript
executable file
·39 lines (30 loc) · 923 Bytes
/
createScript
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
#!/bin/bash
set -e
./checkErrors
./createRelease
jsFiles=(
"AIRAliases"
"AIRIntrospector"
"release/dojo/dojo/dojo"
"release/dojo/diom/diom"
)
numFiles=${#jsFiles[@]}
jsFilesAdded=""
for (( i=0; i<${numFiles}; i++ ));
do
echo appending ./js/${jsFiles[$i]}.js
jsFilesAdded="${jsFilesAdded} ./js/${jsFiles[$i]}.js"
done
echo js files added: $jsFilesAdded
cert="-package -storetype pkcs12 -keystore apphacker.pfx"
binaryName="Diomedes.air"
htmlFiles="index.html"
resourceDirs="icons/ css/ images/"
configFile="Diomedes-app.xml"
otherResources="usa.zwl"
xmlFiles="updateConfig.xml preferences.xml"
swfFiles="servicemonitor.swf applicationupdater_ui.swf spellingENgine.swf"
configVars="${cert} ${binaryName} ${configFile} ${xmlFiles} ${htmlFiles} ${swfFiles} ${otherResources} ${jsFilesAdded} ${resourceDirs} LICENSE"
echo ~/air/bin/adt $configVars
~/air/bin/adt $configVars
echo Created $binaryName release