Skip to content

Commit

Permalink
Update to 137 (#43)
Browse files Browse the repository at this point in the history
* Remove GitHub Action

* Revert "Build Mindustry from source (#39)"

This reverts commit 45c81ac.

* Update runtime

* Update Mindustry.jar to 136.1

* Update Mindustry.jar to 137
  • Loading branch information
TheEvilSkeleton authored Aug 8, 2022
1 parent 5fad683 commit 69cc11d
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 1,947 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/flathub-data-checker.yml

This file was deleted.

26 changes: 0 additions & 26 deletions README.md

This file was deleted.

2 changes: 2 additions & 0 deletions com.github.Anuken.Mindustry.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<url type="contact">https://discord.gg/mindustry</url>
<update_contact>tobiasmue@gnome.org</update_contact>
<releases>
<release version="137" date="2022-08-04"/>
<release version="136.1" date="2022-07-19"/>
<release version="131" date="2021-09-12"/>
<release version="130.1" date="2021-08-25"/>
<release version="130" date="2021-08-16"/>
Expand Down
65 changes: 25 additions & 40 deletions com.github.Anuken.Mindustry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
- org.freedesktop.Sdk.Extension.openjdk11

command: mindustry.sh
finish-args:
Expand All @@ -18,58 +18,43 @@ finish-args:

build-options:
env:
JAVA_HOME: /usr/lib/sdk/openjdk17/
JAVA_HOME: /usr/lib/sdk/openjdk11/
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh
- /usr/lib/sdk/openjdk11/install.sh

- name: mindustry

# We don't have a gradle generator just yet, so we don't build from source
- name: mindustry-binary
buildsystem: simple
sources:
# Main repo
- type: git
url: 'https://github.com/Anuken/Mindustry'
tag: 'v135'
commit: c24c5c6196cd89bdc17a079a2a8acd372cc260d9
x-checker-data:
type: git
tag-pattern: '^v([0-9.]+)$'
# Use externally downloaded gradle wrapper
- type: patch
path: local-gradle-wrapper.patch
- type: file
url: 'https://services.gradle.org/distributions/gradle-7.3-bin.zip'
sha256: de8f52ad49bdc759164f72439a3bf56ddb1589c4cde802d3cec7d6ad0e0ee410
dest: 'gradle/wrapper/'
# Use externally downloaded dependencies
- type: patch
path: local-maven-repo.patch
- gradle-sources.json
# Build script
- type: script
commands:
- 'set -xe'
- 'version=$(git describe --tags | sed -E "s/^v([0-9.]+)$/\1/")'
- './gradlew desktop:dist --no-daemon -Pbuildversion=$version'
dest-filename: build.sh
build-commands:
- 'bash build.sh'
- 'install -D desktop/build/libs/Mindustry.jar /app/bin/Mindustry.jar'
- 'install -D android/ic_launcher-web.png /app/share/icons/hicolor/512x512/apps/com.github.Anuken.Mindustry.png'
- install -D Mindustry.jar /app/bin/Mindustry.jar
- install -D mindustry.sh /app/bin/mindustry.sh
- install -D com.github.Anuken.Mindustry.desktop /app/share/applications/com.github.Anuken.Mindustry.desktop
- install -D com.github.Anuken.Mindustry.metainfo.xml /app/share/metainfo/com.github.Anuken.Mindustry.metainfo.xml
- install -D com.github.Anuken.Mindustry.png /app/share/icons/hicolor/512x512/apps/com.github.Anuken.Mindustry.png

- name: misc
buildsystem: simple
sources:
- type: file
url: https://f-droid.org/repo/io.anuke.mindustry/en-US/icon_Eno3XvqCZUcHRm3eMjiUleAxgzLopPe6-hkI7BHx1lU=.png
dest-filename: com.github.Anuken.Mindustry.png
sha256: 127a375efa82654707466dde32389495e0318332e8a4f7bafa1908ec11f1d655

- type: file
path: com.github.Anuken.Mindustry.metainfo.xml

- type: file
path: com.github.Anuken.Mindustry.desktop

- type: file
path: mindustry.sh

build-commands:
- 'install -D mindustry.sh /app/bin/mindustry.sh'
- 'install -D com.github.Anuken.Mindustry.desktop /app/share/applications/com.github.Anuken.Mindustry.desktop'
- 'install -D com.github.Anuken.Mindustry.metainfo.xml /app/share/metainfo/com.github.Anuken.Mindustry.metainfo.xml'
- type: file
url: https://github.com/Anuken/Mindustry/releases/download/v137/Mindustry.jar
sha256: 2eefb439534c91b6ad73630620dd789a55817a36b15aab6c55525c108b6f6d75
x-checker-data:
type: anitya
project-id: 147357
url-template: https://github.com/Anuken/Mindustry/releases/download/v$version/Mindustry.jar
3 changes: 1 addition & 2 deletions flathub.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"automerge-flathubbot-prs": true,
"only-arches": ["x86_64"]
"automerge-flathubbot-prs": true
}
139 changes: 0 additions & 139 deletions gendeps.sh

This file was deleted.

Loading

0 comments on commit 69cc11d

Please sign in to comment.