-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·62 lines (57 loc) · 1.93 KB
/
build.sh
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
#!/bin/sh
# ** CONFIG **
FLEX3_SDK_PATH=~/flex_sdk_3.5
# ** BUILD **
cat << CONFIG > build-config.xml
<?xml version="1.0" encoding="utf-8"?>
<flex-config>
<target-player>10.0.0</target-player>
<compiler>
<source-path append="true">
<path-element>./src</path-element>
</source-path>
<library-path append="true">
<path-element>./libs/colorpicker.swc</path-element>
<path-element>./libs/framework.swc</path-element>
<path-element>./libs/as3crypto.swc</path-element>
</library-path>
</compiler>
<file-specs>
<path-element>./src/gunyarapaint.mxml</path-element>
</file-specs>
<default-background-color>#FFFFFF</default-background-color>
<default-frame-rate>30</default-frame-rate>
<default-size>
<width>1024</width>
<height>768</height>
</default-size>
</flex-config>
CONFIG
$FLEX3_SDK_PATH/bin/mxmlc -load-config+=build-config.xml -incremental=true -optimize=true -static-link-runtime-shared-libraries=true -locale ja_JP -o ./bin/gunyarapaint.swf
cat << CONFIG > build-config.xml
<?xml version="1.0" encoding="utf-8"?>
<flex-config>
<target-player>10.0.0</target-player>
<compiler>
<source-path append="true">
<path-element>./src</path-element>
</source-path>
<library-path append="true">
<path-element>./libs/colorpicker.swc</path-element>
<path-element>./libs/framework.swc</path-element>
<path-element>./libs/as3crypto.swc</path-element>
</library-path>
</compiler>
<file-specs>
<path-element>./src/gplogplayer.mxml</path-element>
</file-specs>
<default-background-color>#FFFFFF</default-background-color>
<default-frame-rate>30</default-frame-rate>
<default-size>
<width>1024</width>
<height>768</height>
</default-size>
</flex-config>
CONFIG
$FLEX3_SDK_PATH/bin/mxmlc -load-config+=build-config.xml -incremental=true -optimize=true -static-link-runtime-shared-libraries=true -locale ja_JP -o ./bin/gplogplayer.swf
rm build-config.xml