Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Mar 21, 2024
1 parent 074600a commit 9b0a975
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Run packageExe
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.6
arguments: packageDistributionForCurrentOS --stacktrace --warning-mode all -x test -Pcompose.desktop.verbose=true
gradle-version: 8.5
arguments: build package --stacktrace --warning-mode all -x test -Pcompose.desktop.verbose=true

- name: Upload logs
uses: actions/upload-artifact@v3
Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: package-exe
path: 'build/compose/binaries/main/exe/StopBonus-${{ github.ref_name }}.exe'
path: 'build/compose/binaries/main/*/StopBonus-${{ github.ref_name }}.*'
retention-days: 3

create-release:
Expand Down
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,23 @@ dependencies {
}

val versionValue = "1.0.3"
val groupId = "love.forte.app.bonus"
val groupId = "forte.app"

// https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Native_distributions_and_local_execution/README.md
compose.desktop {
application {
mainClass = "MainKt"

jvmArgs += listOf(
"-XX:ErrorFile=.logs/hs_err.log",
"-XX:-HeapDumpOnOutOfMemoryError",
"-XX:HeapDumpPath=.logs/dump.hprof",
)

nativeDistributions {
modules("java.sql", "java.naming")

targetFormats(
TargetFormat.AppImage,
// TargetFormat.AppImage,
TargetFormat.Exe, TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb
)
packageName = "StopBonus"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<property name="LOG_CONTEXT_NAME" value="web-app"/>
<!--定义日志文件的存储地址 勿在LogBack的配置中使用相对路径-->
<property name="LOG_HOME" value="logs/${LOG_CONTEXT_NAME}"/>
<property name="LOG_HOME" value=".logs/${LOG_CONTEXT_NAME}"/>
<!-- 定义日志上下文的名称 -->
<contextName>${LOG_CONTEXT_NAME}</contextName>

Expand Down

0 comments on commit 9b0a975

Please sign in to comment.