-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy-linux-jre.sh
executable file
·28 lines (23 loc) · 1007 Bytes
/
copy-linux-jre.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
#! /bin/sh
#
# Shell script to copy the linux JRE to the air deploy dir
# This is called by the Ant build script. The only reason
# this exists here is b/c Ant's built-in <copy> tasks do
# not preserve permissions, so the JRE gets copied, but no
# executable bits are set, and if you run the installer and
# launch the app, java won't run.
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
JRE=jre1.6.0_25
# -K = keep setuid/setgid/tacky permissions
# -X = restore UID/GID info
# -o = overwrite no prompt
# -u = update, create if necessary
# -d = dir to unzip into
# clean out; use absolute paths please...easy to rm -rf the entire hard drive
rm -rf ./daisyworks-desktop-air/deploy/jre/*
rm -rf ./daisyworks-desktop-air/bin-debug/jre/*
# unzip JRE for packaging
unzip -K -X -o -u -d ./daisyworks-desktop-air/deploy/jre/ ./jre/linux/jre1.6.0_25/jre1.6.0_25.zip
# unzip JRE to bin-debug so it can be used in dev
unzip -K -X -o -u -d ./daisyworks-desktop-air/bin-debug/jre/ ./jre/linux/jre1.6.0_25/jre1.6.0_25.zip