Skip to content

Commit

Permalink
switch to the default standard jre headless
Browse files Browse the repository at this point in the history
old OSes continue to use r2cloud-jdk
  • Loading branch information
dernasherbrezon committed Oct 29, 2024
1 parent f49028c commit 3f87736
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,17 @@ jobs:
run: |
cd ./target/
[[ -f ~/.m2/repository/apt-cli-1.7.jar ]] || wget --no-clobber --quiet -O ~/.m2/repository/apt-cli-1.7.jar https://github.com/dernasherbrezon/apt-cli/releases/download/apt-cli-1.7/apt-cli.jar
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename r2cloud --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename stretch --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename buster --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bullseye --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bookworm --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bionic --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename focal --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename jammy --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
echo "building for old OS"
cd ..
mvn clean
mvn -Dmaven.test.skip=true -Djdk.version="r2cloud-jdk (>=17.0.13-1)" package
cd ./target/
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename stretch --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename buster --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
17 changes: 3 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>openjdk-17-jre-headless</jdk.version>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -277,7 +278,7 @@
<plugin>
<groupId>com.aerse.maven</groupId>
<artifactId>deb-maven-plugin</artifactId>
<version>1.16</version>
<version>1.19</version>
<executions>
<execution>
<id>package</id>
Expand All @@ -292,19 +293,7 @@
<unixGroupId>pi</unixGroupId>
<arch>all</arch>
<section>embedded</section>
<osDependencies>
<r2cloud-ui>>=20240303125106</r2cloud-ui>
<r2cloud-jdk>>=17.0.5-1</r2cloud-jdk>
<nginx-light>>=1.10.3</nginx-light>
<rtl-sdr>>=0.6.4</rtl-sdr>
<!-- required for stdbuf to force stderr flushing -->
<coreutils>>=8.26</coreutils>
<!-- required by wxtoimg -->
<libxft2>>=2.3.2</libxft2>
<sox>>=14.4.1</sox>
<!-- required by deps-maven-plugin -->
<wget />
</osDependencies>
<depends>r2cloud-ui (>=20240303125106), ${jdk.version}, nginx-light(>=1.10.3), rtl-sdr(>=0.6.4), coreutils(>=8.26), libxft2(>=2.3.2), sox(>=14.4.1), wget</depends>
<javaServiceWrapper>false</javaServiceWrapper>
<fileSets>
<fileSet>
Expand Down
2 changes: 1 addition & 1 deletion src/main/deb/lib/systemd/system/r2cloud.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=time-sync.target

[Service]
WorkingDirectory=/home/pi/r2cloud/
ExecStart=/home/pi/r2cloud-jdk/bin/java -cp /home/pi/r2cloud/etc:/home/pi/r2cloud/lib/*:/usr/share/java/r2cloud/* -Djava.library.path=/usr/lib/jni -Djradio.metrics.enabled=true -Duser.timezone=UTC -Djava.util.logging.config.file=/home/pi/r2cloud/etc/logging-prod.properties ru.r2cloud.R2Cloud etc/config-prod.properties
ExecStart=/usr/bin/java -cp /home/pi/r2cloud/etc:/home/pi/r2cloud/lib/*:/usr/share/java/r2cloud/* -Djava.library.path=/usr/lib/jni -Djradio.metrics.enabled=true -Duser.timezone=UTC -Djava.util.logging.config.file=/home/pi/r2cloud/etc/logging-prod.properties ru.r2cloud.R2Cloud etc/config-prod.properties
SyslogIdentifier=r2cloud
SuccessExitStatus=143
Restart=always
Expand Down

0 comments on commit 3f87736

Please sign in to comment.