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

Add: Dekstop-app #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

RaulTrombin
Copy link
Member

@RaulTrombin RaulTrombin commented Sep 11, 2024

image

@RaulTrombin RaulTrombin force-pushed the tauri-app branch 2 times, most recently from cfebf45 to 6b066f4 Compare September 11, 2024 19:58
@RaulTrombin RaulTrombin force-pushed the tauri-app branch 2 times, most recently from 2a6416c to fd99d3c Compare September 19, 2024 16:37
@RaulTrombin RaulTrombin marked this pull request as ready for review September 19, 2024 16:38
@RaulTrombin RaulTrombin marked this pull request as draft September 19, 2024 16:39
@RaulTrombin RaulTrombin marked this pull request as ready for review September 19, 2024 16:42
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
Copy link
Member

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.

Copy link
Member Author

@RaulTrombin RaulTrombin Sep 24, 2024

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'

@RaulTrombin RaulTrombin force-pushed the tauri-app branch 6 times, most recently from 5a427f4 to 336376f Compare September 25, 2024 13:13
Comment on lines 155 to 166
- 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 }}
Copy link
Member

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.

include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
label: 'Mac-M1'
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The label?

@@ -0,0 +1,24 @@
# Logs
Copy link
Member

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 ?

Copy link
Member Author

@RaulTrombin RaulTrombin Sep 26, 2024

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

Copy link
Member

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"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing authors

with:
name: 'ping-viewer_${{steps.tauri-build.outputs.appVersion}}_${{ matrix.label }}'
path: "${{ join(fromJSON(steps.tauri-build.outputs.artifactPaths), '\n') }}"
retention-days: 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing EOL

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

Successfully merging this pull request may close these issues.

2 participants