leather-io / desktop

Manage STX tokens and Stacking
https://leather.io/
191 stars 71 forks source link

Fix build issues on current version #1120

Closed kyranjamie closed 1 year ago

kyranjamie commented 1 year ago

The current version of the desktop wallet no longer builds on macOS, see below trace

  • electron-builder  version=22.1***.5 os=21.6.***
  • artifacts will be published if draft release exists  reason=CI detected
  • loaded configuration  file=/Users/runner/work/stacks-wallet/stacks-wallet/electron-builder.js
  • rebuilding native dependencies  dependencies=node-hid@2.1.1, tiny-secp256k1@1.1.6, usb@1.7.1 platform=darwin arch=x64
  • install prebuilt binary  name=usb version=1.7.1 platform=darwin arch=x64
  • install prebuilt binary  name=node-hid version=2.1.1 platform=darwin arch=x64
  • build native dependency from sources  name=node-hid
                                          version=2.1.1
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install info looking for cached prebuild @ /Users/runner/.npm/_prebuilds/***f***cb3-node-hid-v2.1.1-electron-v87-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/node-hid/node-hid/releases/download/v2.1.1/node-hid-v2.1.1-electron-v87-darwin-x64.tar.gz
    prebuild-install http 4***4 https://github.com/node-hid/node-hid/releases/download/v2.1.1/node-hid-v2.1.1-electron-v87-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=12.***.2 runtime=electron arch=x64 libc= platform=darwin)

  • build native dependency from sources  name=usb
                                          version=1.7.1
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.6
    prebuild-install info looking for cached prebuild @ /Users/runner/.npm/_prebuilds/dde378-usb-v1.7.1-electron-v87-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.7.1/usb-v1.7.1-electron-v87-darwin-x64.tar.gz
    prebuild-install http 4***4 https://github.com/tessel/node-usb/releases/download/v1.7.1/usb-v1.7.1-electron-v87-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=12.***.2 runtime=electron arch=x64 libc= platform=darwin)

  • rebuilding native dependency  name=tiny-secp256k1 version=1.1.6
  • rebuilding native dependency  name=node-hid version=2.1.1
  • rebuilding native dependency  name=usb version=1.7.1
  • packaging       platform=darwin arch=x64 electron=12.***.2 appOutDir=release/mac
  • Unpacking electron zip  zipPath=undefined
  • downloading     url=https://github.com/electron/electron/releases/download/v12.***.2/electron-v12.***.2-darwin-x64.zip size=8*** MB parts=6
  • downloaded      url=https://github.com/electron/electron/releases/download/v12.***.2/electron-v12.***.2-darwin-x64.zip duration=2.268s
  • signing         file=release/mac/Hiro Wallet Testnet.app identityName=Developer ID Application: Blockstack PBC (8AGC2Z4ZX9) identityHash=9318CFE292D87898BA236C2D***BEEA1372***589C6C provisioningProfile=none
  • building        target=macOS zip arch=x64 file=release/stacks-wallet.testnet.zip
  • building        target=DMG arch=x64 file=release/stacks-wallet.testnet.dmg
  • building embedded block map  file=release/stacks-wallet.testnet.zip
  • publishing      publisher=Github (owner: blockstack, project: stacks-wallet, version: 4.7.***-dev.2)
  • uploading       file=stacks-wallet.testnet.zip provider=GitHub
  ⨯ Exit code: ENOENT. spawn /usr/bin/python ENOENT  stackTrace=
                                                       Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
                                                           at /Users/runner/work/stacks-wallet/stacks-wallet/node_modules/builder-util/src/util.ts:129:16
                                                           at exithandler (child_process.js:315:5)
                                                           at ChildProcess.errorhandler (child_process.js:327:5)
                                                           at ChildProcess.emit (events.js:314:2***)
                                                           at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
                                                           at onErrorNT (internal/child_process.js:47***:16)
                                                           at processTicksAndRejections (internal/process/task_queues.js:84:21)
  • GitHub release not created  reason=existing type not compatible with publishing type tag=v4.7.***-dev.2 version=4.7.***-dev.2 existingType=pre-release publishingType=draft
  • skipped publishing  file=stacks-wallet.testnet.zip reason=existing type not compatible with publishing type tag=v4.7.***-dev.2 version=4.7.***-dev.2 existingType=pre-release publishingType=draft
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.