tauri-apps / tauri-action

Build your Web application as a Tauri binary for macOS, Linux and Windows
https://tauri.app
MIT License
948 stars 154 forks source link

Tauri 2.0.0-beta builds on Linux, but not on macOS and Windows #742

Closed 1zun4 closed 8 months ago

1zun4 commented 8 months ago

Hi there,

I'm not sure if this is related to Tauri action or Tauri itself, but so far I've only tested it with GitHub workflow. The following problem occurs:

On Windows:

Finished `release` profile [optimized] target(s) in 9m 29s
Info Verifying wix package
Downloading https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
Info validating hash
Info extracting WIX
Info Target: x64
Downloading https://go.microsoft.com/fwlink/p/?LinkId=2124703
Error failed to bundle project: `The system cannot find the file specified. (os error 2)`
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

On macOS:

Finished `release` profile [optimized] target(s) in 8m 56s
Warn The updater bundle target exists but couldn't find any updater-enabled target, so the updater artifacts won't be generated. Please add one of these targets as well: app, appimage, msi, nsis
Error failed to bundle project: No bundles were built
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

On Linux (Ubuntu) - NO ISSUE:

Finished `release` profile [optimized] target(s) in 5m 38s
Bundling liquidlauncher_0.2.2_amd64.AppImage (/home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage)
Bundling liquidlauncher_0.2.2_amd64.deb (/home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/deb/liquidlauncher_0.2.2_amd64.deb)
Bundling /home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage.tar.gz (/home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage.tar.gz)
Finished 2 bundles at:
        /home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage
        /home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/deb/liquidlauncher_0.2.2_amd64.deb
        /home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage.tar.gz (updater)
    Finished 1 updater signature at:
        /home/runner/work/LiquidLauncher/LiquidLauncher/src-tauri/target/release/bundle/appimage/liquidlauncher_0.2.2_amd64.AppImage.tar.gz.sig
Done in 509.42s.

GitHub Workflow Config: https://github.com/CCBlueX/LiquidLauncher/blob/aad3aed277ae5d71d6cbd6066347314d02f58fa7/.github/workflows/build.yml

Workflow Run: https://github.com/CCBlueX/LiquidLauncher/actions/runs/8368961167

Info (from my local machine):

yarn tauri info
yarn run v1.22.21
$ tauri info

[✔] Environment
    - OS: Manjaro 23.1.3 X64
    ✔ webkit2gtk-4.1: 2.42.5
    ✔ rsvg2: 2.57.1
    ✔ rustc: 1.77.0-nightly (5bd5d214e 2024-01-25)
    ✔ cargo: 1.77.0-nightly (7bb7b5395 2024-01-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: nightly-x86_64-unknown-linux-gnu (default)
    - node: 21.6.2
    - yarn: 1.22.21
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.12
    - tauri-build [RUST]: 2.0.0-beta.10
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.5
    - @tauri-apps/cli [NPM]: 2.0.0-beta.9

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite
Done in 8.74s.

Anyone with a similar problem? I have not been able to find a related issue in any of the repositories.

FabianLars commented 8 months ago

macos fails because bundle.targets in tauri.conf doesn't contain any macos bundle types. I'm not too happy that it's failing the ci because of that but it's an issue with the tauri cli, not the action.

I can't check out windows until later but in the meantime maybe try adding args: --verbose to the tauri-action step and see if it gives us more info.

1zun4 commented 8 months ago

windows with --verbose:

Compiling urlencoding v2.1.3
    Finished `release` profile [optimized] target(s) in 10m 51s
    Info [tauri_bundler::bundle::windows::msi::wix] Verifying wix package
    Downloading [tauri_bundler::bundle::windows::util] https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
    Debug [ureq::stream] connecting to github.com:443 at 140.82.112.3:443
    Debug [rustls::client::hs] No cached session for DnsName("github.com")
    Debug [rustls::client::hs] Not resuming any session
    Debug [rustls::client::hs] Using ciphersuite TLS13_AES_128_GCM_SHA256
    Debug [rustls::client::tls13] Not resuming
    Debug [rustls::client::tls13] TLS1.3 encrypted extensions: [ServerNameAck]
    Debug [rustls::client::hs] ALPN protocol is None
    Debug [ureq::stream] created stream: Stream(RustlsStream)
    Debug [ureq::unit] sending request GET https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
    Debug [ureq::unit] writing prelude: GET /wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip HTTP/1.1
Host: github.com
User-Agent: ureq/2.9.6
Accept: */*
accept-encoding: gzip
    Debug [ureq::response] zero-length body returning stream directly to pool
    Debug [ureq::pool] adding stream to pool: https|github.com|443 -> Stream(RustlsStream)
    Debug [ureq::unit] response 302 to GET https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
    Debug [ureq::unit] redirect 302 https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip -> https://objects.githubusercontent.com/github-production-release-asset-2e65be/17723789/6aaeda80-da25-11e9-8564-82dd8c5115cd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240321%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240321T115902Z&X-Amz-Expires=300&X-Amz-Signature=077db34a41106671d5552b3a0ac00f4dbb2f31284f0d604f0aad75414adbc37e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=17723789&response-content-disposition=attachment%3B%20filename%3Dwix311-binaries.zip&response-content-type=application%2Foctet-stream
    Debug [ureq::stream] connecting to objects.githubusercontent.com:443 at 185.199.111.133:443
    Debug [rustls::client::hs] No cached session for DnsName("objects.githubusercontent.com")
    Debug [rustls::client::hs] Not resuming any session
    Debug [rustls::client::hs] Using ciphersuite TLS13_AES_128_GCM_SHA256
    Debug [rustls::client::tls13] Not resuming
    Debug [rustls::client::tls13] TLS1.3 encrypted extensions: [ServerNameAck]
    Debug [rustls::client::hs] ALPN protocol is None
    Debug [ureq::stream] created stream: Stream(RustlsStream)
    Debug [ureq::unit] sending request GET https://objects.githubusercontent.com/github-production-release-asset-2e65be/17723789/6aaeda80-da25-11e9-8564-82dd8c5115cd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240321%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240321T115902Z&X-Amz-Expires=300&X-Amz-Signature=077db34a41106671d5552b3a0ac00f4dbb2f31284f0d604f0aad75414adbc37e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=17723789&response-content-disposition=attachment%3B%20filename%3Dwix311-binaries.zip&response-content-type=application%2Foctet-stream
    Debug [ureq::unit] writing prelude: GET /github-production-release-asset-2e65be/17723789/6aaeda80-da25-11e9-8564-82dd8c5115cd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240321%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240321T115902Z&X-Amz-Expires=300&X-Amz-Signature=077db34a41106671d5552b3a0ac00f4dbb2f31284f0d604f0aad75414adbc37e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=17723789&response-content-disposition=attachment%3B%20filename%3Dwix311-binaries.zip&response-content-type=application%2Foctet-stream HTTP/1.1
Host: objects.githubusercontent.com
User-Agent: ureq/2.9.6
Accept: */*
accept-encoding: gzip
    Debug [ureq::response] Streaming body until content-length: 34670186
    Debug [ureq::unit] response 200 to GET https://objects.githubusercontent.com/github-production-release-asset-2e65be/17723789/6aaeda80-da25-11e9-8564-82dd8c5115cd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240321%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240321T115902Z&X-Amz-Expires=300&X-Amz-Signature=077db34a41106671d5552b3a0ac00f4dbb2f31284f0d604f0aad75414adbc37e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=17723789&response-content-disposition=attachment%3B%20filename%3Dwix311-binaries.zip&response-content-type=application%2Foctet-stream
    Debug [ureq::pool] adding stream to pool: https|objects.githubusercontent.com|443 -> Stream(RustlsStream)
    Debug [ureq::stream] dropping stream: Stream(RustlsStream)
    Debug [ureq::stream] dropping stream: Stream(RustlsStream)
    Info [tauri_bundler::bundle::windows::util] validating hash
    Info [tauri_bundler::bundle::windows::msi::wix] extracting WIX
    Info [tauri_bundler::bundle::windows::msi::wix] Target: x64
    Downloading [tauri_bundler::bundle::windows::util] https://go.microsoft.com/fwlink/p/?LinkId=2124703
    Debug [ureq::stream] connecting to go.microsoft.com:443 at 23.33.182.219:443
    Debug [rustls::client::hs] No cached session for DnsName("go.microsoft.com")
    Debug [rustls::client::hs] Not resuming any session
    Debug [rustls::client::hs] Using ciphersuite TLS13_AES_256_GCM_SHA384
    Debug [rustls::client::tls13] Not resuming
    Debug [rustls::client::tls13] TLS1.3 encrypted extensions: [ServerNameAck, Unknown(UnknownExtension { typ: EllipticCurves, payload: 00040017001d })]
    Debug [rustls::client::hs] ALPN protocol is None
    Debug [ureq::stream] created stream: Stream(RustlsStream)
    Debug [ureq::unit] sending request GET https://go.microsoft.com/fwlink/p/?LinkId=2124703
    Debug [ureq::unit] writing prelude: GET /fwlink/p/?LinkId=2124703 HTTP/1.1
Host: go.microsoft.com
User-Agent: ureq/2.9.6
Accept: */*
accept-encoding: gzip
    Debug [ureq::response] zero-length body returning stream directly to pool
    Debug [ureq::pool] adding stream to pool: https|go.microsoft.com|443 -> Stream(RustlsStream)
    Debug [ureq::unit] response 301 to GET https://go.microsoft.com/fwlink/p/?LinkId=2124703
    Debug [ureq::unit] redirect 301 https://go.microsoft.com/fwlink/p/?LinkId=2124703 -> https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c8e4de1e-1621-4dfc-bb37-5c390ed2c052/MicrosoftEdgeWebview2Setup.exe
    Debug [ureq::stream] connecting to msedge.sf.dl.delivery.mp.microsoft.com:443 at 204.79.197.219:443
    Debug [rustls::client::hs] No cached session for DnsName("msedge.sf.dl.delivery.mp.microsoft.com")
    Debug [rustls::client::hs] Not resuming any session
    Debug [rustls::client::hs] ALPN protocol is None
    Debug [rustls::client::hs] Using ciphersuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
    Debug [rustls::client::tls12::server_hello] Server supports tickets
    Debug [rustls::client::tls12::server_hello] Server may staple OCSP response
    Debug [rustls::client::tls12] ECDHE curve is EcParameters { curve_type: NamedCurve, named_group: secp384r1 }
    Debug [rustls::client::tls12] Server DNS name is DnsName("msedge.sf.dl.delivery.mp.microsoft.com")
    Debug [ureq::stream] created stream: Stream(RustlsStream)
    Debug [ureq::unit] sending request GET https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c8e4de1e-1621-4dfc-bb37-5c390ed2c052/MicrosoftEdgeWebview2Setup.exe
    Debug [ureq::unit] writing prelude: GET /filestreamingservice/files/c8e4de1e-1621-4dfc-bb37-5c390ed2c052/MicrosoftEdgeWebview2Setup.exe HTTP/1.1
Host: msedge.sf.dl.delivery.mp.microsoft.com
User-Agent: ureq/2.9.6
Accept: */*
accept-encoding: gzip
    Debug [ureq::response] Streaming body until content-length: 1617[864](https://github.com/CCBlueX/LiquidLauncher/actions/runs/8374381128/job/22929494243#step:8:865)
    Debug [ureq::unit] response 200 to GET https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c8e4de1e-1621-4dfc-bb37-5c390ed2c052/MicrosoftEdgeWebview2Setup.exe
    Debug [ureq::pool] adding stream to pool: https|msedge.sf.dl.delivery.mp.microsoft.com|443 -> Stream(RustlsStream)
    Debug [ureq::stream] dropping stream: Stream(RustlsStream)
    Debug [ureq::stream] dropping stream: Stream(RustlsStream)
    Error [tauri_cli_node] failed to bundle project: `The system cannot find the file specified. (os error 2)`
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
FabianLars commented 8 months ago

thanks.

The issue is your licenseFile config. The config is a path relative to the tauri.conf.json file so just LICENSE is wrong and it should be ../LICENSE instead

1zun4 commented 8 months ago

Thank you very much! I will try it.