Packaging script

This commit is contained in:
jay-tux 2025-04-27 21:03:41 +02:00
parent 26df951101
commit 4793e27012
Signed by: jay-tux
GPG Key ID: 84302006B056926E
4 changed files with 23 additions and 2 deletions

2
frontend/.gitignore vendored
View File

@ -17,3 +17,5 @@ captures
!*.xcworkspace/contents.xcworkspacedata !*.xcworkspace/contents.xcworkspacedata
**/xcshareddata/WorkspaceSettings.xcsettings **/xcshareddata/WorkspaceSettings.xcsettings
**/.env **/.env
*.tar.gz

View File

@ -1 +0,0 @@
SERVER_URL=https://simd.jaytux.com/api

View File

@ -72,7 +72,7 @@ compose.desktop {
mainClass = "com.jaytux.simd.frontend.MainKt" mainClass = "com.jaytux.simd.frontend.MainKt"
nativeDistributions { nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.AppImage)
packageName = "com.jaytux.simd.frontend" packageName = "com.jaytux.simd.frontend"
packageVersion = "1.0.0" packageVersion = "1.0.0"
} }
@ -81,4 +81,11 @@ compose.desktop {
compose.resources { compose.resources {
// //
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes["Main-Class"] = "com.jaytux.simd.frontend.MainKt"
}
} }

13
frontend/package.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
echo "./gradlew clean"
./gradlew clean
echo "./gradlew packageAppImage"
./gradlew packageAppImage
echo "./gradlew wasmJsBrowserDistribution"
./gradlew wasmJsBrowserDistribution
echo "tar -czf simd-frontend@linux.tar.gz -C composeApp/build/compose/binaries/main/app/ com.jaytux.simd.frontend"
tar -czf simd-frontend@linux.tar.gz -C composeApp/build/compose/binaries/main/app/ com.jaytux.simd.frontend
echo "tar -czf simd-frontend@web.tar.gz -C composeApp/build/dist/wasmJs productionExecutable"
tar -czf simd-frontend@web.tar.gz -C composeApp/build/dist/wasmJs productionExecutable