Skip to content

Commit 748e294

Browse files
committed
build: Improve build scripts
1 parent 67a211e commit 748e294

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

package.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ set -e
1111
./package_js.sh --skipClean
1212
./package_wasmJs.sh --skipClean
1313

14-
echo "Android Output: sample/build/outputs/apk/release/"
15-
echo "Desktop Output: sample/build/compose/binaries/main/"
16-
echo "JS Output: sample/build/dist/js/productionExecutable/"
17-
echo "WasmJs Output: sample/build/dist/wasmJs/productionExecutable/"
14+
echo "Android distribution is written to $(pwd)/sample/build/outputs/apk/release/"
15+
echo "Desktop distribution is written to $(pwd)sample/build/compose/binaries/main/"
16+
echo "JS distribution is written to $(pwd)sample/build/dist/js/productionExecutable/"
17+
echo "WasmJs distribution is written to $(pwd)sample/build/dist/wasmJs/productionExecutable/"
1818
echo "✅ All packages are created successfully."

package_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
./gradlew sample:assembleRelease
1111

12-
echo "✅ Android package is created successfully. Output: sample/build/outputs/apk/release/"
12+
echo "✅ Android package is created successfully. The distribution is written to $(pwd)/sample/build/outputs/apk/release/"

package_desktop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
./gradlew sample:packageDistributionForCurrentOS
1111

12-
echo "✅ Desktop package is created successfully. Output: sample/build/compose/binaries/main/"
12+
echo "✅ Desktop package is created successfully. The distribution is written to $(pwd)/sample/build/compose/binaries/main/"

package_js.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
./gradlew sample:jsBrowserDistribution
1111

12-
echo "✅ JS package is created successfully. Output: sample/build/dist/js/productionExecutable/"
12+
echo "✅ JS package is created successfully. The distribution is written to $(pwd)/sample/build/dist/js/productionExecutable/"

package_wasmJs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
./gradlew sample:wasmJsBrowserDistribution
1111

12-
echo "✅ WasmJs package is created successfully. Output: sample/build/dist/wasmJs/productionExecutable/"
12+
echo "✅ WasmJs package is created successfully. The distribution is written to $(pwd)/sample/build/dist/wasmJs/productionExecutable/"

sample/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ compose.desktop {
207207
)
208208
}
209209
buildTypes.release.proguard {
210-
// obfuscate.set(true) // Obfuscate the code
210+
obfuscate.set(true) // Obfuscate the code
211+
optimize.set(true) // proguard optimization, enabled by default
211212
configurationFiles.from(project.file("compose-desktop.pro"))
212213
}
213214
}

0 commit comments

Comments
 (0)