From 70d1f25f44dd8c4e72496f50d295f8d69f9ffdc6 Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Sat, 14 Jul 2018 02:33:19 +0100 Subject: [PATCH] WIP: [com.blizzard.Hearthstone] Add Hearthstone --- .../com.blizzard.Hearthstone.appdata.xml | 42 +++++++ .../com.blizzard.Hearthstone.yml | 107 ++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 com.blizzard.Hearthstone/com.blizzard.Hearthstone.appdata.xml create mode 100644 com.blizzard.Hearthstone/com.blizzard.Hearthstone.yml diff --git a/com.blizzard.Hearthstone/com.blizzard.Hearthstone.appdata.xml b/com.blizzard.Hearthstone/com.blizzard.Hearthstone.appdata.xml new file mode 100644 index 0000000..33282d2 --- /dev/null +++ b/com.blizzard.Hearthstone/com.blizzard.Hearthstone.appdata.xml @@ -0,0 +1,42 @@ + + + com.blizzard.Hearthstone.desktop + CC0-1.0x + LicenseRef-proprietary + Hearthstone + + + + winepak + Blizzard Entertainment + + https://playhearthstone.com + https://us.battle.net/support/en/games/hearthstone + https://us.battle.net/forums/en/hearthstone/10591462/ + + + Game + Strategy + + + + moderate + mild + mild + mild + moderate + intense + intense + mild + + + + + +
    +
  • Initial release of Hearthstone via winepak.
  • +
+
+
+
+
diff --git a/com.blizzard.Hearthstone/com.blizzard.Hearthstone.yml b/com.blizzard.Hearthstone/com.blizzard.Hearthstone.yml new file mode 100644 index 0000000..d01ace3 --- /dev/null +++ b/com.blizzard.Hearthstone/com.blizzard.Hearthstone.yml @@ -0,0 +1,107 @@ +app-id: com.blizzard.Hearthstone +branch: stable + +runtime: org.winepak.Platform +runtime-version: 3.0 +sdk: org.winepak.Sdk + +base: com.blizzard.BattleNet.BaseApp +base-version: stable + +command: hearthstone + +inherit-extensions: + - org.winepak.Platform.Compat32 + - org.winepak.Platform.Extension.corefonts + - org.winepak.Platform.Extension.vcrun2015 + +add-extensions: + org.winepak.Platform.Wine: + directory: lib/wine + version: 3.9-staging + add-ld-path: lib + no-autodownload: false + + org.winepak.Platform.Wine.Compat32: + directory: lib/wine-32bit + version: 3.9-staging + add-ld-path: lib + no-autodownload: false + +tags: + - proprietary + +finish-args: + - --socket=x11 + - --socket=pulseaudio + - --share=ipc + - --share=network + - --device=dri + - --allow=multiarch + - --allow=devel + +modules: + - name: setup-wine + buildsystem: simple + build-commands: + - mkdir -p /app/lib/wine + + - name: setup-wine-compat32 + buildsystem: simple + build-commands: + - mkdir -p /app/lib/wine-32bit + + - name: hearthstone + only-arches: + - x86_64 + buildsystem: simple + build-commands: + - install -d /app/bin + - install hearthstone-installer /app/bin + - install hearthstone /app/bin + - install -Dm644 com.blizzard.Hearthstone.appdata.xml /app/share/appdata/com.blizzard.Hearthstone.appdata.xml + + sources: + - type: script + dest-filename: hearthstone-installer + commands: + - if [ -z "$WINEPREFIX" ]; then + - ' echo "No wine prefix set or is empty, abort."' + - ' exit 1' + - fi + - + - source /app/bin/battlenet-installer "battlenet://Hearthstone" + - + - if [[ $? != 0 ]] ; then + - ' echo "Battle.net installer failed, abort."' + - ' exit 1' + - fi + - + - if [ -e "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Hearthstone" ] ; then + - ' echo "This prefix already has an exisiting ''Hearthstone'' install at ${WINEPREFIX}"' + - ' echo "In order to install ''Hearthstone'' you must move or delete the current prefix."' + - ' exit 1' + - fi + + - type: script + dest-filename: hearthstone + commands: + - export WINEARCH=win64 + - + - if ! [ -e "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Battle.net" ] ; then + - ' source /app/bin/hearthstone-installer' + - ' if [[ $? != 0 ]] ; then' + - ' echo "Installation failed, abort."' + - ' exit 1' + - ' fi' + - fi + - + - echo "Verify \"Battle.net Helper.exe\" doesn't launch..." + - if [ -f "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Battle.net/Battle.net*/Battle.net Helper.exe" ] ; then + - ' mv "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Battle.net/Battle.net*/Battle.net Helper.exe" "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Battle.net/Battle.net*/Battle.net Helper.exe.bak"' + - fi + - + - wine64 "${WINEPREFIX}/dosdevices/c:/Program Files (x86)/Battle.net/Battle.net Launcher.exe" "battlenet://Hearthstone" + + - type: file + path: com.blizzard.Hearthstone.appdata.xml