lf
This commit is contained in:
parent
8c894fb3ce
commit
a0d5135820
1 changed files with 43 additions and 1 deletions
|
@ -1 +1,43 @@
|
||||||
#!/bin/sh
# Build application.
ls
mkdir rssguard-build && cd rssguard-build
lrelease -compress ../rssguard.pro
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
make
make install
# Make DMG image.
make dmg
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
set -- *.dmg
dmgname="$1"
git_revision=$(git rev-parse --short HEAD)
if [ "$USE_WEBENGINE" = true ]; then
dmgnamenospace="rssguard-${git_revision}-mac64.dmg"
else
dmgnamenospace="rssguard-${git_revision}-nowebengine-mac64.dmg"
fi
mv "$dmgname" "$dmgnamenospace"
dmgname="$dmgnamenospace"
echo "File to upload: $dmgname"
echo "URL ending: $dmgnamenospace"
git config --global user.email "rotter.martinos@gmail.com"
git config --global user.name "martinrotter"
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
url=$(curl --upload-file "./$dmgname" "https://transfer.sh/$dmgnamenospace" --silent)
echo "| $(date +'%m-%d-%Y %T') | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | $(echo "$USE_WEBENGINE") | "$'\r' >> ./build-wiki/Mac-OS-X-development-builds.md
cd ./build-wiki
git add *.*
git commit -m "New files."
git pull origin master
git push origin master
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Build application.
|
||||||
|
ls
|
||||||
|
mkdir rssguard-build && cd rssguard-build
|
||||||
|
lrelease -compress ../rssguard.pro
|
||||||
|
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# Make DMG image.
|
||||||
|
make dmg
|
||||||
|
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
|
||||||
|
|
||||||
|
set -- *.dmg
|
||||||
|
dmgname="$1"
|
||||||
|
git_revision=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
|
if [ "$USE_WEBENGINE" = true ]; then
|
||||||
|
dmgnamenospace="rssguard-${git_revision}-mac64.dmg"
|
||||||
|
else
|
||||||
|
dmgnamenospace="rssguard-${git_revision}-nowebengine-mac64.dmg"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mv "$dmgname" "$dmgnamenospace"
|
||||||
|
dmgname="$dmgnamenospace"
|
||||||
|
|
||||||
|
echo "File to upload: $dmgname"
|
||||||
|
echo "URL ending: $dmgnamenospace"
|
||||||
|
|
||||||
|
git config --global user.email "rotter.martinos@gmail.com"
|
||||||
|
git config --global user.name "martinrotter"
|
||||||
|
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
|
||||||
|
|
||||||
|
url=$(curl --upload-file "./$dmgname" "https://transfer.sh/$dmgnamenospace" --silent)
|
||||||
|
|
||||||
|
echo "| $(date +'%m-%d-%Y %T') | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | $(echo "$USE_WEBENGINE") | "$'\r' >> ./build-wiki/Mac-OS-X-development-builds.md
|
||||||
|
|
||||||
|
cd ./build-wiki
|
||||||
|
git add *.*
|
||||||
|
git commit -m "New files."
|
||||||
|
git pull origin master
|
||||||
|
git push origin master
|
Loading…
Add table
Reference in a new issue