-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: [com.blizzard.Hearthstone] Add Hearthstone
- Loading branch information
Showing
2 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
com.blizzard.Hearthstone/com.blizzard.Hearthstone.appdata.xml
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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop"> | ||
<id>com.blizzard.Hearthstone.desktop</id> | ||
<metadata_license>CC0-1.0x</metadata_license> | ||
<project_license>LicenseRef-proprietary</project_license> | ||
<name>Hearthstone</name> | ||
<!-- <description></description> --> | ||
<!-- <screenshots> --> | ||
<!-- </screenshots> --> | ||
<project_group>winepak</project_group> | ||
<developer_name>Blizzard Entertainment</developer_name> | ||
|
||
<url type="homepage">https://playhearthstone.com</url> | ||
<url type="help">https://us.battle.net/support/en/games/hearthstone</url> | ||
<url type="bugtracker">https://us.battle.net/forums/en/hearthstone/10591462/</url> | ||
|
||
<categories> | ||
<category>Game</category> | ||
<category>Strategy</category> | ||
</categories> | ||
|
||
<content_rating type="oars-1.1"> | ||
<content_attribute id="violence-fantasy">moderate</content_attribute> | ||
<content_attribute id="violence-bloodshed">mild</content_attribute> | ||
<content_attribute id="drugs-alcohol">mild</content_attribute> | ||
<content_attribute id="sex-themes">mild</content_attribute> | ||
<content_attribute id="sex-appearance">moderate</content_attribute> | ||
<content_attribute id="social-chat">intense</content_attribute> | ||
<content_attribute id="money-purchasing">intense</content_attribute> | ||
<content_attribute id="money-gambling">mild</content_attribute> | ||
</content_rating> | ||
|
||
<releases> | ||
<release date="2018-07-14" version="0.1.0"> | ||
<description> | ||
<ul> | ||
<li>Initial release of Hearthstone via winepak.</li> | ||
</ul> | ||
</description> | ||
</release> | ||
</releases> | ||
</component> |
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,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 |