Skip to content

Commit 65c1757

Browse files
authored
Merge pull request #1534 from maxrave-dev/dev
v1.0.1: New update
2 parents 396ebef + b092a0d commit 65c1757

File tree

50 files changed

+1118
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1118
-290
lines changed

.github/workflows/desktop-deb-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
run: ./gradlew exportLibraryDefinitions
5353

5454
- name: Build desktop DEB package
55-
run: ./gradlew packageDeb
55+
run: ./gradlew packageReleaseDeb
5656

5757
- name: Upload DEB package
5858
uses: actions/upload-artifact@v4
5959
with:
6060
name: desktop-deb-package
61-
path: composeApp/build/compose/binaries/main/deb/*.deb
61+
path: composeApp/build/compose/binaries/main-release/deb/*.deb

.github/workflows/desktop-dmg-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
run: ./gradlew exportLibraryDefinitions
5353

5454
- name: Build desktop DMG package
55-
run: ./gradlew packageDmg
55+
run: ./gradlew packageReleaseDmg
5656

5757
- name: Upload DMG package
5858
uses: actions/upload-artifact@v4
5959
with:
6060
name: desktop-dmg-package
61-
path: composeApp/build/compose/binaries/main/dmg/*.dmg
61+
path: composeApp/build/compose/binaries/main-release/dmg/*.dmg

.github/workflows/desktop-msi-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
run: ./gradlew exportLibraryDefinitions
5353

5454
- name: Build desktop MSI package
55-
run: ./gradlew packageMsi
55+
run: ./gradlew packageReleaseMsi
5656

5757
- name: Upload MSI package
5858
uses: actions/upload-artifact@v4
5959
with:
6060
name: desktop-msi-package
61-
path: composeApp/build/compose/binaries/main/msi/*.msi
61+
path: composeApp/build/compose/binaries/main-release/msi/*.msi
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build desktop RPM package
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'dev'
8+
paths-ignore:
9+
- 'README.md'
10+
- 'fastlane/**'
11+
- 'assets/**'
12+
- '.github/**/*.md'
13+
- '.github/FUNDING.yml'
14+
- '.github/ISSUE_TEMPLATE/**'
15+
16+
permissions:
17+
contents: write
18+
19+
jobs:
20+
build-desktop-rpm:
21+
name: Build desktop RPM package
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
shell: bash
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
submodules: 'recursive'
30+
31+
- name: Install RPM build tools
32+
run: sudo apt-get update && sudo apt-get install -y rpm
33+
34+
- name: set up JDK 17
35+
uses: actions/setup-java@v4
36+
with:
37+
java-version: 21
38+
distribution: "zulu"
39+
cache: 'gradle'
40+
41+
- name: Update build product flavor
42+
run: |
43+
echo "" >> ./gradle.properties
44+
echo "isFullBuild=true" >> ./gradle.properties
45+
46+
- name: Update Sentry Secrets
47+
env:
48+
SENTRY_DSN: ${{ secrets.SENTRY_DSN_JVM }}
49+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
50+
run: |
51+
echo 'SENTRY_DSN=${{ secrets.SENTRY_DSN_JVM }}' > ./local.properties
52+
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> ./local.properties
53+
54+
- name: Generate aboutLibraries.json
55+
run: ./gradlew exportLibraryDefinitions
56+
57+
- name: Build desktop RPM package
58+
run: ./gradlew packageReleaseRpm
59+
60+
- name: Upload RPM package
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: desktop-rpm-package
64+
path: composeApp/build/compose/binaries/main-release/rpm/*.rpm

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ sentry.properties
2727
/composeApp/build/
2828
/composeApp/cache/
2929
/composeApp/kcef-bundle/
30+
/.mcp.json

MediaServiceCore

Submodule MediaServiceCore updated 41 files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ A FOSS YouTube Music client for Android and Desktop with many features from<br>S
7575
- Special thanks to [SmartTube](https://github.com/yuliskov/SmartTube). This repo help me to extract the streaming URL of YouTube Music.
7676
- My app is using [SponsorBlock](https://sponsor.ajay.app/) to skip sponsor in YouTube videos.
7777
- ReturnYouTubeDislike for getting information on votes
78-
- Main lyrics data from SimpMusic Lyrics. More information [SimpMusic Lyrics](https://lyrics.simpmusic.org/)
78+
- Main lyrics data from SimpMusic Lyrics
7979
- Alternative lyrics data from LRCLIB. More information [LRCLIB](https://lrclib.net/)
8080

8181
## Privacy

composeApp/build.gradle.kts

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ plugins {
3030
dependencies {
3131
coreLibraryDesugaring(libs.desugaring)
3232
val debugImplementation = "debugImplementation"
33-
debugImplementation(compose.uiTooling)
33+
debugImplementation(libs.ui.tooling)
3434
}
3535

3636
kotlin {
@@ -69,7 +69,7 @@ kotlin {
6969
implementation(libs.koin.android)
7070
implementation(libs.koin.androidx.compose)
7171

72-
implementation(compose.preview)
72+
implementation(libs.jetbrains.ui.tooling.preview)
7373
implementation(libs.activity.compose)
7474
implementation(libs.constraintlayout.compose)
7575

@@ -107,12 +107,12 @@ kotlin {
107107
}
108108
}
109109
commonMain.dependencies {
110-
implementation(compose.runtime)
111-
implementation(compose.foundation)
112-
implementation(compose.material3)
113-
implementation(compose.ui)
114-
implementation(compose.components.resources)
115-
implementation(compose.preview)
110+
implementation(libs.runtime)
111+
implementation(libs.foundation)
112+
implementation(libs.compose.material3)
113+
implementation(libs.compose.ui)
114+
implementation(libs.components.resources)
115+
implementation(libs.jetbrains.ui.tooling.preview)
116116
implementation(libs.androidx.lifecycle.viewmodelCompose)
117117
implementation(libs.androidx.lifecycle.runtimeCompose)
118118

@@ -312,7 +312,7 @@ compose.desktop {
312312
mainClass = "com.maxrave.simpmusic.MainKt"
313313

314314
nativeDistributions {
315-
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
315+
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm)
316316
modules("jdk.unsupported")
317317
packageName = "SimpMusic"
318318
macOS {
@@ -352,8 +352,8 @@ compose.desktop {
352352

353353
buildTypes.release.proguard {
354354
optimize.set(true)
355-
obfuscate.set(false)
356-
configurationFiles.from("proguard-rules.pro")
355+
obfuscate.set(true)
356+
configurationFiles.from("proguard-desktop-rules.pro")
357357
}
358358
}
359359
}
@@ -429,10 +429,22 @@ sentry {
429429
} else {
430430
includeProguardMapping.set(false)
431431
autoUploadProguardMapping.set(false)
432+
uploadNativeSymbols.set(false)
433+
includeDependenciesReport.set(false)
434+
includeSourceContext.set(false)
435+
includeNativeSources.set(false)
432436
}
433437
telemetry.set(false)
434438
}
435439

440+
if (!isFullBuild) {
441+
tasks.whenTaskAdded {
442+
if (name.contains("injectSentryDebugMetaPropertiesIntoAssetsRelease")) {
443+
enabled = false
444+
}
445+
}
446+
}
447+
436448
afterEvaluate {
437449
tasks.withType<JavaExec> {
438450
jvmArgs("--add-opens", "java.desktop/sun.awt=ALL-UNNAMED")
@@ -444,4 +456,4 @@ afterEvaluate {
444456
jvmArgs("--add-opens", "java.desktop/sun.lwawt.macosx=ALL-UNNAMED")
445457
}
446458
}
447-
}
459+
}

0 commit comments

Comments
 (0)