Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
leavesCZY committed Jun 14, 2024
1 parent 283e882 commit 8b8cfc8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,26 @@ jobs:
- if: matrix.os == 'windows-latest'
name: rename File
run: |
mv ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.exe ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86-64.exe
mv ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.exe ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86_64.exe
- if: matrix.os == 'windows-latest'
name: zip AppImage
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86-64.zip"
filename: "compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86_64.zip"
directory: "./build/compose/binaries/main-release/app/compose-multiplatform-xlog-decode"

- if: matrix.os == 'ubuntu-latest'
name: rename File
run: |
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}-1.x86_64.rpm /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-linux-x86-64.rpm
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}-1.x86_64.rpm /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-linux-x86_64.rpm
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode_${{env.PACKAGE_VERSION}}_amd64.deb /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-linux-amd64.deb
- if: matrix.os == 'macos-13'
name: rename File
run: |
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-macos-x86-64.dmg
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-macos-x86_64.dmg
- if: matrix.os == 'macos-14'
name: rename File
Expand All @@ -79,14 +79,15 @@ jobs:
uses: josStorer/get-current-time@v2
with:
format: YYYY-MM-DD
utcOffset: "+08:00"

- name: draft a new release
uses: ncipollo/release-action@v1
with:
token: ${{secrets.ACTION_TOKEN}}
allowUpdates: true
artifactErrorsFailBuild: false
generateReleaseNotes: false
generateReleaseNotes: true
artifacts: "**/exe/*.exe,**/app/compose-multiplatform-xlog-decode/*.zip,**/deb/*.deb,**/rpm/*.rpm,**/dmg/*.dmg"
body: "## ${{env.V_PACKAGE_VERSION}} / ${{steps.currentTime.outputs.formattedTime}}"
tag: "${{env.V_PACKAGE_VERSION}}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

- [Compose Multiplatform 写一个跨平台的 xlog 解析工具](https://juejin.cn/post/7378452954221084682)

![](https://github.com/leavesCZY/compose-multiplatform-xlog-decode/assets/30774063/57187495-9dd6-4644-afb6-154c31944a40)
![](https://github.com/leavesCZY/compose-multiplatform-xlog-decode/assets/30774063/41377b6c-35e2-44e7-8486-2ed8caeedb0b)
3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ plugins {
alias(libs.plugins.jetbrains.compose.compiler)
}

group = "github.leavesczy"
version = "1.0.0"

kotlin {
jvmToolchain(18)
compilerOptions {
Expand Down
6 changes: 4 additions & 2 deletions proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-ignorewarnings
-optimizationpasses 6
-optimizationpasses 8
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile

Expand All @@ -8,4 +8,6 @@
-keep class org.lwjgl.** { *; }
-keepclassmembers class * extends androidx.datastore.preferences.protobuf.GeneratedMessageLite {
<fields>;
}
}

-keep class github.leavesczy.xlog.decode.** { *; }
2 changes: 1 addition & 1 deletion workflows-trigger.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
trigger=2
trigger=3

0 comments on commit 8b8cfc8

Please sign in to comment.