mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-04 04:11:10 +01:00
lf
This commit is contained in:
parent
8c894fb3ce
commit
a0d5135820
@ -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…
Reference in New Issue
Block a user