-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from tkashkin/dev
Merge dev branch
- Loading branch information
Showing
95 changed files
with
6,193 additions
and
3,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" | ||
export PATH="${APPDIR}/usr/bin:${PATH}" | ||
export XDG_DATA_DIRS="${APPDIR}/usr/share:${XDG_DATA_DIRS}" | ||
|
||
export GSETTINGS_SCHEMA_DIR="${APPDIR}/usr/share/glib-2.0/schemas/:${GSETTINGS_SCHEMA_DIR}" | ||
export GTK_PATH="${APPDIR}/usr/lib/gtk-3.0" | ||
export GTK_DATA_PREFIX="${APPDIR}/usr/" | ||
#export GTK_THEME="Adwaita" | ||
|
||
"${APPDIR}/usr/bin/com.github.tkashkin.gamehub" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
_ROOT="`pwd`" | ||
_SCRIPTROOT="$(dirname "$(readlink -f "$0")")" | ||
_LINUXDEPLOYQT="linuxdeployqt-continuous-x86_64.AppImage" | ||
|
||
BUILDROOT="$_ROOT/build/appimage" | ||
BUILDDIR="$BUILDROOT/build" | ||
APPDIR="$BUILDROOT/appdir" | ||
|
||
ACTION=${1:-build_local} | ||
|
||
deps() | ||
{ | ||
sudo add-apt-repository ppa:elementary-os/stable -y | ||
sudo add-apt-repository ppa:elementary-os/os-patches -y | ||
sudo add-apt-repository ppa:elementary-os/daily -y | ||
sudo apt update -qq | ||
sudo apt install -y meson valac checkinstall build-essential elementary-sdk libgranite-dev libgtk-3-dev libglib2.0-dev libwebkit2gtk-4.0-dev libjson-glib-dev libgee-0.8-dev libsoup2.4-dev libsqlite3-dev libxml2-dev | ||
sudo apt full-upgrade -y | ||
} | ||
|
||
build() | ||
{ | ||
cd "$_ROOT" | ||
mkdir -p "$BUILDROOT" | ||
meson "$BUILDDIR" --prefix=/usr --buildtype=debugoptimized -Ddistro=generic -Dappimage=true | ||
cd "$BUILDDIR" | ||
ninja | ||
DESTDIR="$APPDIR" ninja install | ||
cd "$_ROOT" | ||
} | ||
|
||
appimage() | ||
{ | ||
cd "$BUILDROOT" | ||
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/$_LINUXDEPLOYQT" | ||
chmod a+x linuxdeployqt-continuous-x86_64.AppImage | ||
unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH | ||
export VERSION=$(git rev-parse --short HEAD) | ||
export LD_LIBRARY_PATH=$APPDIR/usr/lib:$LD_LIBRARY_PATH | ||
"./$_LINUXDEPLOYQT" "$APPDIR/usr/share/applications/com.github.tkashkin.gamehub.desktop" -appimage -bundle-non-qt-libs -verbose=2 | ||
rm -f "$APPDIR/AppRun" | ||
cp -f "$_SCRIPTROOT/AppRun" "$APPDIR/AppRun" | ||
glib-compile-schemas "$APPDIR/usr/share/glib-2.0/schemas" | ||
"./$_LINUXDEPLOYQT" --appimage-extract | ||
PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool "$APPDIR" | ||
} | ||
|
||
upload() | ||
{ | ||
cd "$BUILDROOT" | ||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | ||
bash upload.sh GameHub*.AppImage* | ||
} | ||
|
||
if [[ "$ACTION" = "deps" ]]; then deps; fi | ||
if [[ "$ACTION" = "build" || "$ACTION" = "build_local" ]]; then build; fi | ||
if [[ "$ACTION" = "appimage" || "$ACTION" = "build_local" ]]; then appimage; fi | ||
if [[ "$ACTION" = "upload" ]]; then upload; fi |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
branches: | ||
except: | ||
- flatpak | ||
|
||
image: | ||
- Ubuntu1804 | ||
|
||
clone_folder: ~/GameHub | ||
|
||
build_script: | ||
- sh: dpkg-buildpackage -b -us -uc | ||
- sh: bash appimage/build.sh build && bash appimage/build.sh appimage | ||
|
||
install: | ||
- sh: bash appimage/build.sh deps | ||
|
||
test: off | ||
|
||
artifacts: | ||
- path: ~/com.github.tkashkin.gamehub*.deb | ||
name: deb | ||
- path: ~/com.github.tkashkin.gamehub*.ddeb | ||
name: deb-dbgsym | ||
- path: build/appimage/GameHub*.AppImage* | ||
name: AppImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/com/github/tkashkin/gamehub/icons"> | ||
<file alias="scalable/actions/sources-all-symbolic.svg">sources-all.svg</file> | ||
<file alias="scalable/actions/steam-symbolic.svg">steam.svg</file> | ||
<file alias="scalable/actions/gog-symbolic.svg">gog.svg</file> | ||
<file alias="scalable/actions/humble-symbolic.svg">humble.svg</file> | ||
|
||
<file alias="scalable/actions/platform-linux-symbolic.svg">platform-linux.svg</file> | ||
<file alias="scalable/actions/platform-windows-symbolic.svg">platform-windows.svg</file> | ||
<file alias="scalable/actions/platform-macos-symbolic.svg">platform-macos.svg</file> | ||
<file alias="scalable/actions/sources-all-symbolic.svg">symbolic/sources/sources-all.svg</file> | ||
<file alias="scalable/actions/source-steam-symbolic.svg">symbolic/sources/steam.svg</file> | ||
<file alias="scalable/actions/source-gog-symbolic.svg">symbolic/sources/gog.svg</file> | ||
<file alias="scalable/actions/source-humble-symbolic.svg">symbolic/sources/humble.svg</file> | ||
<file alias="scalable/actions/source-humble-trove-symbolic.svg">symbolic/sources/humble-trove.svg</file> | ||
|
||
<file alias="scalable/actions/platform-linux-symbolic.svg">symbolic/platforms/linux.svg</file> | ||
<file alias="scalable/actions/platform-windows-symbolic.svg">symbolic/platforms/windows.svg</file> | ||
<file alias="scalable/actions/platform-macos-symbolic.svg">symbolic/platforms/macos.svg</file> | ||
|
||
<file alias="scalable/actions/tool-wine-symbolic.svg">symbolic/tools/wine.svg</file> | ||
<file alias="scalable/actions/tool-dosbox-symbolic.svg">symbolic/tools/dosbox.svg</file> | ||
|
||
<file alias="scalable/actions/tag.svg">normal/tags/tag.svg</file> | ||
|
||
<file alias="scalable/actions/gh-tag-symbolic.svg">symbolic/tags/tag.svg</file> | ||
<file alias="scalable/actions/gh-tag-add-symbolic.svg">symbolic/tags/tag-add.svg</file> | ||
<file alias="scalable/actions/gh-tag-remove-symbolic.svg">symbolic/tags/tag-remove.svg</file> | ||
<file alias="scalable/actions/gh-tag-multiple-symbolic.svg">symbolic/tags/tag-multiple.svg</file> | ||
<file alias="scalable/actions/gh-tag-favorites-symbolic.svg">symbolic/tags/tag-favorites.svg</file> | ||
<file alias="scalable/actions/gh-tag-hidden-symbolic.svg">symbolic/tags/tag-hidden.svg</file> | ||
</gresource> | ||
</gresources> |
Oops, something went wrong.