Skip to content

Commit

Permalink
Merge pull request #815 from PBH-BTN/master
Browse files Browse the repository at this point in the history
v7.2.2
  • Loading branch information
Ghost-chu authored Dec 12, 2024
2 parents 818f802 + 178b7df commit 2476139
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: luangong/setup-install4j@v1
name: Setup Install4j
with:
version: 10.0.8
version: 11.0.1
license: ${{ secrets.INSTALL4J_LICENSE }}
- name: Make installers
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LABEL maintainer="https://github.com/PBH-BTN/PeerBanHelper"
USER 0
EXPOSE 9898
ENV TZ=UTC
ENV JAVA_OPTS="-Dpbh.release=docker -Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
ENV JAVA_OPTS="-Dpbh.release=docker -Djava.awt.headless=true -Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
WORKDIR /app
VOLUME /tmp
COPY --from=build build/target/libraries /app/libraries
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-Release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY target/PeerBanHelper.jar /app/PeerBanHelper.jar
USER 0
EXPOSE 9898
ENV TZ=UTC
ENV JAVA_OPTS="-Dpbh.release=docker -Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
ENV JAVA_OPTS="-Dpbh.release=docker -Djava.awt.headless=true -Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
WORKDIR /app
VOLUME /tmp
ENTRYPOINT ${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar PeerBanHelper.jar

Check warning on line 11 in Dockerfile-Release

View workflow job for this annotation

GitHub Actions / Build_Docker

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
29 changes: 9 additions & 20 deletions install4j/project.install4j
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<install4j version="10.0.8" transformSequenceNumber="10">
<install4j version="11.0.1" transformSequenceNumber="11">
<directoryPresets config="target/PeerBanHelper.jar" />
<application name="PeerBanHelper" applicationId="7121-2388-2769-9582" mediaDir="./output" lzmaCompression="true" shortName="PeerBanHelper" publisher="PBH-BTN Community" publisherWeb="https://github.com/PBH-BTN" version="7.0.0" allPathsRelative="true" backupOnSave="true" autoSave="true" convertDotsToUnderscores="false" convertSpacesToUnderscores="false" macVolumeId="6106cfe6eb875954" javaMinVersion="23" javaMaxVersion="24">
<languages languageSelectionInPrincipalLanguage="true">
Expand Down Expand Up @@ -79,7 +79,7 @@
<executable name="PeerBanHelper-Service" iconSet="true" executableDir="." redirectStderr="false" stderrFile="~/PeerBanHelper/error.log" stdoutFile="~/PeerBanHelper/output.log" executableMode="service" singleInstance="true" checkConsoleParameter="true">
<versionInfo include="true" fileDescription="${i18n:peerbanhelper.description}" legalCopyright="PBH-BTN Community - Licensed under GPLv3 licenses. https://www.gnu.org/licenses/quick-guide-gplv3.en.html" internalName="peerbanhelper" />
</executable>
<java mainClass="com.ghostchu.peerbanhelper.MainJumpLoader" vmParameters="-Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps -Dfile.encoding=UTF-8 -Dpbh.usePlatformConfigLocation=true -Dpbh.release=install4j -Dlauncher.directory=${launcher:sys.launcherDirectory}" arguments="nogui">
<java mainClass="com.ghostchu.peerbanhelper.MainJumpLoader" vmParameters="-Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps -Dfile.encoding=UTF-8 -Dpbh.usePlatformConfigLocation=true -Dpbh.release=install4j -Djava.awt.headless=true -Dlauncher.directory=${launcher:sys.launcherDirectory}" arguments="nogui">
<classPath>
<scanDirectory location="libraries" failOnError="false" />
<archive location="PeerBanHelper.jar" failOnError="false" />
Expand Down Expand Up @@ -519,6 +519,7 @@ return !Files.getFileStore(dir).isReadOnly() &amp;&amp; ((Util.isWindows() &amp;
</action>
<action id="150" beanClass="com.install4j.runtime.beans.actions.update.CheckForUpdateAction" actionElevationType="none" failureStrategy="quit">
<serializedBean>
<property name="showError" type="boolean" value="false" />
<property name="url" type="string">${installer:updatesUrl?:${compiler:sys.updatesUrl}}</property>
<property name="variable" type="string">updateDescriptor</property>
</serializedBean>
Expand Down Expand Up @@ -1575,15 +1576,11 @@ return true;</property>
</styles>
</installerGui>
<mediaSets>
<windows name="Windows x64" id="38" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" architecture="64">
<jreBundle installOnlyIfNecessary="true" />
</windows>
<windows name="Windows x64" id="38" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" architecture="64" />
<windows name="Windows x64 NoJava" id="109" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}_nojava" architecture="64">
<jreBundle jreBundleSource="none" />
</windows>
<windows name="Windows arm64" id="141" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" architecture="arm64">
<jreBundle installOnlyIfNecessary="true" />
</windows>
<windows name="Windows arm64" id="141" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" architecture="arm64" />
<windows name="Windows arm64 NoJava" id="112" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}_nojava" architecture="arm64">
<jreBundle jreBundleSource="none" />
</windows>
Expand All @@ -1592,23 +1589,15 @@ return true;</property>
<jreBundle jreBundleSource="none" />
</macosFolder>
<linuxRPM name="Linux RPM" id="106" mediaFileName="${compiler:sys.shortName}_rpm_${compiler:sys.jreBundleArch}_${compiler:sys.version}" installDir="/usr/local/${compiler:sys.shortName}" require64BitVm="true" arch="x86_64" />
<unixInstaller name="x64 Linux Installer" id="103" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle installOnlyIfNecessary="true" />
</unixInstaller>
<unixInstaller name="x64 Linux Installer" id="103" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true" />
<unixInstaller name="aarch64 Linux Installer" id="127" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle platform="linux-aarch64" installOnlyIfNecessary="true" />
<jreBundle platform="linux-aarch64" />
</unixInstaller>
<unixInstaller name="ppc64le Linux Installer" id="130" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle platform="linux-ppc64le" installOnlyIfNecessary="true" />
<jreBundle platform="linux-ppc64le" />
</unixInstaller>
<unixInstaller name="riscv64 Linux Installer" id="133" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle platform="linux-riscv64" installOnlyIfNecessary="true" />
</unixInstaller>
<unixInstaller name="alpine x64 Linux Installer" id="136" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle platform="alpine-linux-amd64" installOnlyIfNecessary="true" />
</unixInstaller>
<unixInstaller name="alpine aarch64 Linux Installer" id="139" mediaFileName="${compiler:sys.shortName}_${compiler:sys.jreBundleArch}_${compiler:sys.version}" require64BitVm="true">
<jreBundle platform="alpine-linux-aarch64" installOnlyIfNecessary="true" />
<jreBundle platform="linux-riscv64" />
</unixInstaller>
</mediaSets>
<buildIds>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ghostchu.peerbanhelper</groupId>
<artifactId>peerbanhelper</artifactId>
<version>7.2.1</version>
<version>7.2.2</version>
<packaging>jar</packaging>

<name>PeerBanHelper</name>
Expand Down Expand Up @@ -211,7 +211,7 @@
<jarPath>${project.basedir}/target/PeerBanHelper.jar</jarPath>
</variables>
<!-- <incremental>true</incremental>-->
<jvmArguments>-Xmx2G</jvmArguments>
<jvmArguments>-Xmx4G</jvmArguments>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public DownloaderLoginResult login0() {

@Override
public List<Torrent> getTorrents() {
RqTorrentGet torrent = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME, Fields.PEERS_CONNECTED, Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD, Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE);
RqTorrentGet torrent = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME, Fields.PEERS_CONNECTED, Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD, Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.SIZE_WHEN_DONE);
TypedResponse<RsTorrentGet> rsp = client.execute(torrent);
return rsp.getArgs().getTorrents().stream()
.filter(t -> t.getStatus() == Status.DOWNLOADING || t.getStatus() == Status.SEEDING)
Expand Down Expand Up @@ -178,7 +178,7 @@ private void relaunchTorrents(Collection<Long> ids) {
RqTorrentGet torrentList = new RqTorrentGet(Fields.ID, Fields.HASH_STRING, Fields.NAME,
Fields.PEERS_CONNECTED,
Fields.STATUS, Fields.TOTAL_SIZE, Fields.PEERS, Fields.RATE_DOWNLOAD,
Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.IS_PRIVATE);
Fields.RATE_UPLOAD, Fields.PEER_LIMIT, Fields.PERCENT_DONE, Fields.IS_PRIVATE, Fields.SIZE_WHEN_DONE);
TypedResponse<RsTorrentGet> rsp = client.execute(torrentList);
List<Long> torrents = rsp.getArgs().getTorrents().stream()
.filter(t -> t.getStatus() != Status.STOPPED)
Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/changelogViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<a-space direction="vertical" size="mini" style="padding-left: 20px; padding-right: 20px">
<a-typography-title :heading="4">{{ t('changeLogModel.changelog') }} </a-typography-title>
<Markdown
style="max-height: 60vh"
style="height: 60vh; width: 80vh"
:content="endpointStore.latestVersion?.changeLog ?? ''"
use-github-markdown
/>
Expand Down
17 changes: 1 addition & 16 deletions webui/src/components/markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<iframe
v-if="useGithubMarkdown"
title="changelog"
style="border: none; width: 80vh; height: 60vh"
style="border: none; width: 100%; height: 100%"
:srcdoc="srcDoc"
sandbox=""
/>
Expand All @@ -26,18 +26,3 @@ const { content, useGithubMarkdown = false } = defineProps<{
useGithubMarkdown?: boolean
}>()
</script>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 20px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>

0 comments on commit 2476139

Please sign in to comment.