quba-viewer icon indicating copy to clipboard operation
quba-viewer copied to clipboard

Does not work on intel macs

Open jstaerk opened this issue 2 years ago • 25 comments

We build the Mac version on a M1, i.e. on a ARM platform. Apparently this does not give us universal binaries so the >70% of intel users cant start Quba? (What error message do they get?)

Is somebody affected and can someone assist, e.g. by helping us build on a intel mac or pointing to a good build service (which works, https://github.com/electron-userland/electron-build-service seems to be down) ?

PS: I attributed previous issues on the mac (#14, #19) mainly to the old version of electron we used, which should be fixed now. If I was wrong and it was in fact this issues pls let me know.

jstaerk avatar Feb 06 '23 08:02 jstaerk

Hi there, I tried to install the viewer on my Mac. Got error-message that it is not supported. quba-not_supported03 quba-not_supported02 quba-not_supported01

beleeisenmann avatar Oct 13 '23 08:10 beleeisenmann

Hi there, I tried to install the viewer on my Mac. Got error-message that it is not supported. quba-not_supported03 quba-not_supported02 quba-not_supported01

If I click on the question-mark-icon I get an empty window.

beleeisenmann avatar Oct 13 '23 08:10 beleeisenmann

We tried to compile a prerelease of 1.4.0, can someone please try and let us know if https://quba-viewer.org/files/issue23_quba_intel.dmg works?

jstaerk avatar Jan 08 '24 11:01 jstaerk

We tried to compile a prerelease of 1.4.0, can someone please try and let us know if https://quba-viewer.org/files/issue23_quba_intel.dmg works?

it successfully starts on an Intel Mac with macOS 14.3

d--j avatar Jan 25 '24 00:01 d--j

We tried to compile a prerelease of 1.4.0, can someone please try and let us know if https://quba-viewer.org/files/issue23_quba_intel.dmg works?

I can confirm it also runs on an Intel Mac with macOS 12.7.4 (Monterey).

RF3 avatar Mar 28 '24 14:03 RF3

#26 and #42 have been solved and we need some volunteer with a intel mac to release versions for both. We do now sign and notarize this stuff but my understanding is that only when we build it in a intel mac we get a universal binary, in which cases it would start on both intel and m macs, if we only build it on a m it will also only run on a m and AFAIK there is no setting to prevent this. -> Any volunteers?

jstaerk avatar May 09 '24 07:05 jstaerk

#26 and #42 have been solved and we need some volunteer with a intel mac to release versions for both. We do now sign and notarize this stuff but my understanding is that only when we build it in a intel mac we get a universal binary, in which cases it would start on both intel and m macs, if we only build it on a m it will also only run on a m and AFAIK there is no setting to prevent this. -> Any volunteers?

I can test it on an Intel Mac with macOS Ventura 13.6.6.

RF3 avatar Jul 03 '24 14:07 RF3

@RF3 shall we have a look together e.g. at Thu, August 15th, 15:00-16:00 CET?

jstaerk avatar Aug 13 '24 15:08 jstaerk

I just had another look and it actually seems to work so we need only someone with intel mac to build&release because we only have Ms and intel seems to be the only way to get universal binaries. we can talk on wednesday

jstaerk avatar Sep 02 '24 07:09 jstaerk

@jstaerk According to my research, you should be able to build a universal binary on a Mac with Apple Silicon. I modified the package.json as suggested on Stack Overflow:

diff --git a/package.json b/package.json
index a8402d8..852f418 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,13 @@
     "appId": "org.quba-viewer.viewer",
     "mac": {
       "category": "Document",
-      "icon": "./assets/img/logo_small_icon_only.png"
+      "icon": "./assets/img/logo_small_icon_only.png",
+      "target": {
+        "target": "dmg",
+        "arch": [
+          "universal"
+        ]
+      }
     },
     "win": {
       "icon": "./assets/img/logo_small_icon_only.png"

The resulting binary (built on a Mac with Apple Silicon) can be started on both Intel and Apple Silicon Macs. At the moment, I have the problem that after starting the built application, there only is a white window, but I assume that this rather happens because I did something wrong during the build process (I am neither familiar with NPM nor Electron) than this being a result of building a universal binary.

smarsching avatar Sep 02 '24 09:09 smarsching

I was able to confirm that the problems that I experienced when starting Quba were caused by my inability to correctly handle the build tools, not a problem with the universal binary: I replaced the Contents/Resources directory in the universal app that I built with the one from the official 1.4.0 release, and now everything is working fine.

So, I can definitely say that there is no need for an Intel Mac in order to build a universal binary.

smarsching avatar Sep 02 '24 10:09 smarsching

merged it we'll try

jstaerk avatar Sep 13 '24 13:09 jstaerk

I was not able to run Quba 1.4.0 on my Intel Mac Book under iOS 14.4.1. Can you please help me?

Ostalf24 avatar Sep 15 '24 12:09 Ostalf24

Hi @akemlek could you please build with your M mac and send me a mail when done? Did the size of the dmg increase? thanks!

jstaerk avatar Sep 16 '24 10:09 jstaerk

Whoever wants to try please let us know if https://quba-viewer.org/files/Quba-1.4.1-universal.dmg works!

jstaerk avatar Sep 24 '24 14:09 jstaerk

@jstaerk I just tested it on both my Intel and my Apple Silicon Mac and it seems to work on both. So, I think you got it right. 👍

smarsching avatar Sep 24 '24 15:09 smarsching

I've tried it on my Mac and it's not working. Bildschirmfoto 2024-09-24 um 19 25 01

5now avatar Sep 24 '24 17:09 5now

@5now I think that you accidentally opened the wrong file: Your screenshot says “Quba 1.4.0-arm64”, but the linked DMG is “Quba-1.4.1-universal”.

smarsching avatar Sep 24 '24 17:09 smarsching

But this is was the Download link on the Webpage ok i try the other one. Thank you

5now avatar Sep 24 '24 17:09 5now

@smarsching so i have tried the Quba-1.4.1-universal as you suggested and am now receiving following error message: Bildschirmfoto 2024-09-24 um 19 34 40

5now avatar Sep 24 '24 18:09 5now

@5now I assume that because this is not a release but just a pre-release built, it has not been signed, and macOS does not allow running unsigned apps that have been downloaded. If you want to mark it as safe, you have to run

xattr -d com.apple.quarantine Quba-1.4.1-universal.dmg

before opening the DMG. After doing that, macOS will not assume that the file has been downloaded from the Internet and it will thus run the app, even though it is not signed.

smarsching avatar Sep 24 '24 18:09 smarsching

@smarsching thx a lot now its working

5now avatar Sep 25 '24 05:09 5now

It's working with macOS Ventura 13.6.9 on an Intel Mac.

In the menu, the entry Datei öffnen... / Open File... is missing the ⌘O shortcut but Command+O is still working. Beenden / Quit is also missing the ⌘Q shortcut and Command+Q does not close the app.

RF3 avatar Sep 25 '24 08:09 RF3

I can confirm that it works on my MacBook, even though the startup time is unusually long. It starts up way faster on Linux on the same machine. image

Lenni-builder avatar Sep 25 '24 20:09 Lenni-builder

After some more testing I noticed a few things:

  • The menu bar says "Exit" instead of "Quit" with Cmd+Q (as previously mentioned) image
  • Shortcuts like Ctrl + O should be Cmd + O (also mentioned before)
  • There seems to be no way to close the "about" dialog without exiting the entire app. (I don't know how it behaves on ARM macOS, I don't have a way to test that) image

My guess is that you set some build option incorrectly so that the app "thinks" it's running on Linux or Windows.

Lenni-builder avatar Sep 25 '24 20:09 Lenni-builder

After some more testing I noticed a few things:

  • The menu bar says "Exit" instead of "Quit" with Cmd+Q (as previously mentioned)
  • Shortcuts like Ctrl + O should be Cmd + O (also mentioned before)
  • There seems to be no way to close the "about" dialog without exiting the entire app. (I don't know how it behaves on ARM macOS, I don't have a way to test that)

My guess is that you set some build option incorrectly so that the app "thinks" it's running on Linux or Windows.

Please open separate issues for separate issues, thanks

jstaerk avatar Sep 30 '24 11:09 jstaerk

I think those issues are related to the Intel/Universal build, but I can't verify that. Somebody should try both the stable ARM as well as universal builds on an ARM machine.

Lenni-builder avatar Sep 30 '24 12:09 Lenni-builder

Installed the Quba viewer today on my macBookAir Sonoma 14.6.1 successfully.

beleeisenmann avatar Oct 01 '24 09:10 beleeisenmann

I had a look at the surface with different language-settings and reported a translation error on the edit-menu: the last section is not translated. Bildschirmfoto 2024-10-01 um 10 02 28

Bildschirmfoto 2024-10-01 um 10 02 04

I although asked myself why a user would need emoticons to view a document.

The icon in the dock is very small. Bildschirmfoto 2024-10-01 um 10 03 25

beleeisenmann avatar Oct 01 '24 09:10 beleeisenmann

Installed the Quba viewer today on my macBookAir Sonoma 14.6.1 successfully.

apologizes for not using an Intel Mac - i do not own it anymore - try to find one.

beleeisenmann avatar Oct 01 '24 09:10 beleeisenmann