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

[bug] Auto Updater breaks app icon #4613

Closed
JonasKruckenberg opened this issue Jul 7, 2022 · 4 comments
Closed

[bug] Auto Updater breaks app icon #4613

JonasKruckenberg opened this issue Jul 7, 2022 · 4 comments
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@JonasKruckenberg
Copy link
Member

Describe the bug

After an app configured to use auto updating is updated. It looses it's icon in the macOS "Applications" view in the Finder. This is only a temporary bug and the icon can be fixed be either restarting the machine or selecting "Show Package Contents".
Note that simply closing the Finder window or navigating to a different folder does not help.

Screenshot 2022-07-07 at 10 14 32

Reproduction

This is a bit hard to reproduce since the app I encountered this with is not yet open source, but here are the steps to follow along:

  1. Have an app configured to use auto updater
  2. download an older version
  3. move the app to the "Applications" folder (to avoid the Read-only file system error)
  4. open the app and let the updater run it's course
  5. restart the app
  6. the icon is replaced by the placeholder icon

Expected behavior

The icon should continue to be displayed and not need a machine restart to show up.

Platform and versions

Environment
  › OS: Mac OS 12.4.0 X64
  › Node.js: 16.15.0
  › npm: 8.5.5
  › pnpm: 7.5.0
  › yarn: 3.2.1
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-aarch64-apple-darwin 

Packages
  › @tauri-apps/cli [NPM]: 1.0.3
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 1.0.3,
  › tauri-build [RUST]: 1.0.3,
  › tao [RUST]: 0.12.0,
  › wry [RUST]: 0.19.0,

App
  › build-type: bundle
  › CSP: connect-src http://localhost:55001; media-src https://*; style-src 'self' 'unsafe-inline'; frame-src https://*; image-src https://*; default-src 'self'
  › distDir: ../../plz-out/gen/frontend/dist/client
  › devPath: http://localhost:3000/
  › bundler: Rollup

App directory structure
  ├─ .config
  ├─ .husky
  ├─ .yarn
  ├─ infra
  ├─ frontend
  ├─ proto
  ├─ plz-out
  ├─ target
  ├─ node_modules
  ├─ desktop
  ├─ backend
  ├─ docs
  ├─ third_party
  ├─ graphql
  ├─ scripts
  ├─ .github
  ├─ .plz-cache
  ├─ build
  ├─ .git
  └─ .vscode

Stack trace

No response

Additional context

No response

@JonasKruckenberg JonasKruckenberg added type: bug platform: macOS status: needs triage This issue needs to triage, applied to new issues labels Jul 7, 2022
@nothingismagick
Copy link
Member

I can confirm this. The only workaround I found was to click the Get Info from the context dropdown.

@lucasfernog
Copy link
Member

I've seen this some times too. Maybe we need to update a DS_Store file?

@nothingismagick
Copy link
Member

or touch the file?

@lucasfernog
Copy link
Member

Seems like touch works @nothingismagick I'm making some tests in tauri now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants