Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distribute desktop app #827

Open
Tracked by #787
lydavid opened this issue Mar 31, 2024 · 6 comments
Open
Tracked by #787

distribute desktop app #827

lydavid opened this issue Mar 31, 2024 · 6 comments

Comments

@lydavid
Copy link
Owner

lydavid commented Mar 31, 2024

When we ./gradlew desktop:app:assembleDist, it will generate:

  • desktop/app/build/distributions/app-1.0-SNAPSHOT.tar
  • desktop/app/build/distributions/app-1.0-SNAPSHOT.zip

Extracting these, and running them, we do not see a .db file in its directory.

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

https://docs.gradle.org/current/userguide/java_library_distribution_plugin.html
seems like we already have access to this

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

Because we build this in GHA ubuntu-latest, it will crash on other OS:

Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.

https://stackoverflow.com/a/70150484

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

Example releasing on:
- windows-latest
- macos-latest
- ubuntu-latest
https://github.com/JFormDesigner/markdown-writer-fx/blob/62bab275f8b32ced1aae80b64ff3389c7c4f5e8c/.github/workflows/release.yml#L13
uses https://github.com/softprops/action-gh-release
when a tag is created (by semantic release), we can have a separate workflow that assembles the desktop distributions on each of the platforms, and add it to the recently created tag's release

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

Does https://github.com/semantic-release/semantic-release support pushing assets to the same tag from multiple jobs?

@lydavid
Copy link
Owner Author

lydavid commented Mar 31, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant