tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] [v1][macos] _MASReceipt prevents bundle from being deleted

Open rtmotiondev opened this issue 1 year ago • 0 comments

Describe the bug

When using in-app store purchases in macOS a directory called _MASReceipt is created in the bundle with a receipt file. That directory and file are owned by root which causes npm run tauri build to fail.

"Error failed to bundle project: Failed to remove old Relative Motion.app"

Reproduction

No response

Expected behavior

Old bundle to be removed

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
    ✔ cargo: 1.77.2 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.11.0
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.6.2
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.8
    - @tauri-apps/api [NPM]: 1.5.4
    - @tauri-apps/cli [NPM]: 1.5.12

[-] App
    - build-type: bundle
    - CSP: default-src 'self'; script-src 'self'; connect-src 'self' server.relativemotion.app dev.server.relativemotion.app ws:; img-src https://* data:; frame-src *; child-src 'self'; font-src 'self'; style-src-elem 'self'; style-src 'self'; object-src 'none'; upgrade-insecure-requests;
    - distDir: ../src
    - devPath: ../src
    - bundler: Webpack

Stack trace

No response

Additional context

No response

rtmotiondev avatar May 01 '24 09:05 rtmotiondev