fixed build for centos
This commit is contained in:
@@ -6,7 +6,7 @@ myarch=$(dpkg --print-architecture)
|
|||||||
if test "${arch}" = "amd64"; then
|
if test "${arch}" = "amd64"; then
|
||||||
myarch="amd64|i386"
|
myarch="amd64|i386"
|
||||||
fi
|
fi
|
||||||
mode="deb"
|
mode=
|
||||||
img="mwaeckerlin/ubuntu:latest"
|
img="mwaeckerlin/ubuntu:latest"
|
||||||
repos=()
|
repos=()
|
||||||
keys=()
|
keys=()
|
||||||
@@ -241,7 +241,19 @@ if ! docker exec ${DOCKER_ID} getent passwd $(id -u) > /dev/null 2>&1; then
|
|||||||
docker exec ${DOCKER_ID} useradd -m -u $(id -u) -g $(id -g) -d"${HOME}" $(id -un)
|
docker exec ${DOCKER_ID} useradd -m -u $(id -u) -g $(id -g) -d"${HOME}" $(id -un)
|
||||||
fi
|
fi
|
||||||
docker exec ${DOCKER_ID} chown $(id -u):$(id -g) "${HOME}"
|
docker exec ${DOCKER_ID} chown $(id -u):$(id -g) "${HOME}"
|
||||||
case $mode in
|
if test -z "$mode"; then
|
||||||
|
case "$targets" in
|
||||||
|
(*deb*) mode=deb;;
|
||||||
|
(*rpm*) mode=rpm;;
|
||||||
|
(*) case "$img" in
|
||||||
|
(*ubuntu*|*debian*|*mint*) mode=deb;;
|
||||||
|
(*fedora*|*centos*|*mageia*) mode=rpm;;
|
||||||
|
(*mingw*|*win*) mode=win;;
|
||||||
|
(*) mode=deb;;
|
||||||
|
esac;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
case "$mode" in
|
||||||
(deb|apt|win)
|
(deb|apt|win)
|
||||||
if [[ "${img}" =~ "ubuntu" ]]; then
|
if [[ "${img}" =~ "ubuntu" ]]; then
|
||||||
docker exec ${DOCKER_ID} locale-gen ${LANG}
|
docker exec ${DOCKER_ID} locale-gen ${LANG}
|
||||||
@@ -281,7 +293,7 @@ case $mode in
|
|||||||
;;
|
;;
|
||||||
(rpm|yum|dnf|zypper|urpmi)
|
(rpm|yum|dnf|zypper|urpmi)
|
||||||
if [[ "$img" =~ "centos" ]]; then
|
if [[ "$img" =~ "centos" ]]; then
|
||||||
docker exec ${DOCKER_ID} yum install -y redhat-lsb
|
docker exec ${DOCKER_ID} yum install -y redhat-lsb epel-release
|
||||||
docker exec -i ${DOCKER_ID} bash -c 'cat > /etc/yum.repos.d/wandisco-svn.repo' <<EOF
|
docker exec -i ${DOCKER_ID} bash -c 'cat > /etc/yum.repos.d/wandisco-svn.repo' <<EOF
|
||||||
[WandiscoSVN]
|
[WandiscoSVN]
|
||||||
name=Wandisco SVN Repo
|
name=Wandisco SVN Repo
|
||||||
|
@@ -86,20 +86,19 @@ if test -n "${QTDIR}"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 5: copy or create info.plist
|
# Step 5: copy local or create new info.plist
|
||||||
infoplist=$(find ${apptarget}/Contents/Resources -name Info.plist)
|
if test -f Info.plist; then
|
||||||
if test -f "${infoplist}"; then
|
cp -a Info.plist ${apptarget}/Contents/Info.plist
|
||||||
cp -a "${infoplist}" ${apptarget}/Contents/Info.plist
|
|
||||||
else
|
else
|
||||||
cat > ${apptarget}/Contents/Info.plist <<EOF
|
cat > ${apptarget}/Contents/Info.plist <<EOF
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<qdict>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>${project}</string>
|
<string>${project}</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>${executablefile##/}</string>
|
<string>${executablefile##*/}</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user