deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.35k stars 183 forks source link

Need help for ARM64 linux build #378

Open deepnight opened 3 years ago

deepnight commented 3 years ago

I added an experimental GitHub action YML file to build ARM64 Linux for a Raspberry target, but only get some "multipass socket access" error and don't know how to figure this out 🤔

YML file: https://github.com/deepnight/ldtk/blob/raspberry/.github/workflows/package-raspberry.yml In branch: https://github.com/deepnight/ldtk/tree/raspberry

Knowing pretty much nothing anymore about Linux, I'm stuck here 😅

  • electron-builder  version=22.9.1 os=5.4.0-1039-azure
  • loaded configuration  file=package.json ("build" field)
  • packaging       platform=linux arch=arm64 electron=10.3.2 appOutDir=redist/linux-arm64-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v10.3.2/electron-v10.3.2-linux-arm64.zip size=80 MB parts=4
  • downloaded      url=https://github.com/electron/electron/releases/download/v10.3.2/electron-v10.3.2-linux-arm64.zip duration=1.616s
  • building        target=snap arch=arm64 file=redist/LDtk 0.7.2 installer.snap
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z size=1.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z duration=251ms
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
Ignoring '--target-arch' flag.  This flag requires --destructive-mode and is unsupported with Multipass and LXD build providers.
Launching a VM.

launch failed: multipass socket access denied
Please check that you have read/write permissions to '/var/snap/multipass/common/multipass_socket'
cykoder commented 3 years ago

Stab in the dark, haven't used snapcraft before, but seems like its a user permissions issue. Are you able to run that command its failing on in sudo? Failing that, I saw in the YML file you commented out multipass install - is there a reason for that?