Update snap for gradle build
This commit is contained in:
parent
7f8049c73d
commit
8e0a9fc1a4
@ -6,14 +6,14 @@ description: |
|
|||||||
OpenRocket is a free, fully featured model rocket simulator that allows you
|
OpenRocket is a free, fully featured model rocket simulator that allows you
|
||||||
to design and simulate your rockets before actually building and flying them.
|
to design and simulate your rockets before actually building and flying them.
|
||||||
|
|
||||||
The main features include
|
The main features include:
|
||||||
|
|
||||||
* Six-degree-of-freedom flight simulation
|
* Six-degree-of-freedom flight simulation
|
||||||
* Automatic design optimization
|
* Automatic design optimization
|
||||||
* Realtime simulated altitude, velocity and acceleration display
|
* Realtime simulated altitude, velocity and acceleration display
|
||||||
* Staging and clustering support
|
* Staging and clustering support
|
||||||
* Cross-platform (Java-based)
|
* Cross-platform (Java-based)
|
||||||
* Read more about it on the OpenRocket.info.
|
* Read more about it on OpenRocket.info
|
||||||
license: GPL-3.0
|
license: GPL-3.0
|
||||||
base: core22
|
base: core22
|
||||||
confinement: strict
|
confinement: strict
|
||||||
@ -51,40 +51,23 @@ apps:
|
|||||||
|
|
||||||
parts:
|
parts:
|
||||||
openrocket:
|
openrocket:
|
||||||
plugin: ant
|
plugin: gradle
|
||||||
build-packages:
|
|
||||||
- ant
|
|
||||||
- ant-contrib
|
|
||||||
- ant-optional
|
|
||||||
- openjdk-17-jdk
|
|
||||||
- openjdk-17-jre
|
|
||||||
source: .
|
source: .
|
||||||
source-type: git
|
gradle-output-dir: 'build/libs'
|
||||||
ant-build-targets:
|
gradle-options:
|
||||||
- clean
|
- shadowJar
|
||||||
- check
|
- -Dorg.gradle.java.home=$JAVA_HOME
|
||||||
- unittest
|
build-packages:
|
||||||
- jar
|
- openjdk-17-jdk
|
||||||
override-pull: |
|
override-pull: |
|
||||||
# Override the pull in order to set the version and the grade.
|
|
||||||
# In the future, the releases can be annotated tags and snapcraft
|
|
||||||
# will use those for the version numbers.
|
|
||||||
#
|
|
||||||
# This can be extended to other parts of OpenRocket (to use the
|
|
||||||
# git describe --tags command) but the build should be updated at
|
|
||||||
# the same time so its consistent across all artifacts. Will defer
|
|
||||||
# that to a later pull request.
|
|
||||||
#
|
|
||||||
# Until then, just use the build.version value
|
|
||||||
craftctl default
|
craftctl default
|
||||||
VERSION=$(cat core/resources/build.properties | awk -F'=' '/build\.version/ { print $2 }')
|
version=$(grep 'version =' build.gradle | awk '{print $3}' | tr -d "'")
|
||||||
craftctl set version="$VERSION"
|
craftctl set version="$version"
|
||||||
override-build: |
|
override-build: |
|
||||||
craftctl default
|
craftctl default
|
||||||
mv swing/build/jar/OpenRocket.jar $CRAFT_PART_INSTALL/OpenRocket.jar
|
mv build/libs/OpenRocket-*.jar $CRAFT_PART_INSTALL/OpenRocket.jar
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- openjdk-17-jdk
|
- openjdk-17-jre-headless
|
||||||
- openjdk-17-jre
|
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- ca-certificates-java
|
- ca-certificates-java
|
||||||
prime:
|
prime:
|
||||||
@ -97,4 +80,3 @@ parts:
|
|||||||
source: snap/local
|
source: snap/local
|
||||||
organize:
|
organize:
|
||||||
'launcher': 'bin/'
|
'launcher': 'bin/'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user