-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add: Dekstop-app #21
Add: Dekstop-app #21
Conversation
RaulTrombin
commented
Sep 11, 2024
•
edited
Loading
edited
cfebf45
to
6b066f4
Compare
2a6416c
to
fd99d3c
Compare
fd99d3c
to
d6228eb
Compare
d6228eb
to
a6b2593
Compare
.github/workflows/action.yml
Outdated
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: 'macos-latest' # for Arm based macs (M1 and above). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep in mind that macos-13 is for Intel and macos-14/macos-latest is for ARM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bellow there is the args prop, i think the tauri-action is cross-compiling inside
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
336376f
to
17e48a8
Compare
.github/workflows/action.yml
Outdated
- uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
projectPath: './ping-viewer-next-desktop' | ||
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | ||
releaseName: 'App v__VERSION__' | ||
releaseBody: 'See the assets to download this version and install.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid doing the release using the tauri action, and use it just for the build.
The action also does not provide artifacts, the best way of doing this is to use further steps to deploy artifacts and release files.
.github/workflows/action.yml
Outdated
include: | ||
- platform: 'macos-latest' | ||
args: '--target aarch64-apple-darwin' | ||
label: 'Mac-M1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Apple Silicon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,24 @@ | |||
# Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary, can we clean it up ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the Logs default folder when we execute the desktop app with logger module with cargo run, would suggest to keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just saying to remove the unnecessary stuff, .idea, .dist-ssr, .sln
name = "ping-viewer-next-desktop" | ||
version = "0.1.0" | ||
description = "A Tauri App" | ||
authors = ["you"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing authors
.github/workflows/action.yml
Outdated
with: | ||
name: 'ping-viewer_${{steps.tauri-build.outputs.appVersion}}_${{ matrix.label }}' | ||
path: "${{ join(fromJSON(steps.tauri-build.outputs.artifactPaths), '\n') }}" | ||
retention-days: 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing EOL