automerge / pushpin

A collaborative corkboard app
BSD 3-Clause "New" or "Revised" License
642 stars 54 forks source link

can't create a dist #368

Open Gozala opened 4 years ago

Gozala commented 4 years ago

Here is log of an attempt

yarn dist
yarn run v1.21.1
$ yarn compile --mode=production && yarn make-icon && electron-builder
$ webpack --mode=production
Starting type checking service...
Using 1 worker with 2048MB memory limit
Starting type checking service...
Using 1 worker with 2048MB memory limit
Starting type checking service...
Using 1 worker with 2048MB memory limit
Starting type checking service...
Using 1 worker with 2048MB memory limit
(node:76386) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Hash: bb37afe3584553809063ab99d68d021ab021c7f734d83d11bac00c388912c00dad403909f92cd674
Version: webpack 4.35.2
Child main:
    Hash: bb37afe3584553809063
    Time: 26639ms
    Built at: 12/21/2019 3:02:34 PM
    Entrypoint main = main.js main.js.map
    [0] external "electron" 42 bytes {0} [built]
    [2] multi ./src/main 28 bytes {0} [built]
    [3] ./src/main/index.ts 11 KiB {0} [built]
        + 13 hidden modules
Child freeze-dry-preload:
    Hash: ab99d68d021ab021c7f7
    Time: 26635ms
    Built at: 12/21/2019 3:02:34 PM
    Entrypoint freeze-dry-preload = freeze-dry-preload.js
    [0] external "electron" 42 bytes {0} [built]
    [1] ./src/freeze-dry-preload/index.ts 2.49 KiB {0} [built]
    [2] external "freeze-dry" 42 bytes {0} [built]
        + 6 hidden modules
Child clipper-host:
    Hash: 34d83d11bac00c388912
    Time: 27177ms
    Built at: 12/21/2019 3:02:35 PM
    Entrypoint clipper-host = clipper-host.js
    [10] ./src/apps/clipper-host/index.ts 2.3 KiB {0} [built]
    [23] ./src/apps/clipper-host/NativeMessaging.ts 1.58 KiB {0} [built]
    [24] ./src/apps/clipper-host/JsonBuffer.ts 669 bytes {0} [built]
        + 23 hidden modules
Child renderer:
    Hash: c00dad403909f92cd674
    Time: 27185ms
    Built at: 12/21/2019 3:02:35 PM
    Entrypoint renderer = renderer.js renderer.js.map
    Entrypoint background = background.js background.js.map
      [0] external "react" 42 bytes {0} {1} [built]
    [106] ./src/renderer/index.tsx 3.82 KiB {1} [built]
    [282] ./src/background/index.tsx 2.42 KiB {0} [built]
        + 300 hidden modules
    Child html-webpack-plugin for "background.html":
        Entrypoint undefined = background.html
        [2] (webpack)/buildin/module.js 497 bytes {0} [built]
            + 2 hidden modules
    Child html-webpack-plugin for "index.html":
        Entrypoint undefined = index.html
        [2] (webpack)/buildin/module.js 497 bytes {0} [built]
            + 2 hidden modules
    Child worker:
        Entrypoint main = b73bc9bf236a196370b0.worker.js b73bc9bf236a196370b0.worker.js.map
           2 modules
$ svgpng assets/pushpinIcon_Standalone.svg build/icon.png -w 512
  • electron-builder  version=21.2.0 os=19.0.0
  • loaded configuration  file=/Users/gozala/Projects/pushpin/electron-builder.json
  • writing effective config  file=out/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=better-sqlite3@5.4.3, fd-lock@1.0.2, integer@2.1.0, sodium-native@2.4.6, utp-native@2.1.4 platform=darwin arch=x64
  • rebuilding native dependency  name=fd-lock version=1.0.2
  • rebuilding native dependency  name=better-sqlite3 version=5.4.3
  • rebuilding native dependency  name=integer version=2.1.0
  • rebuilding native dependency  name=sodium-native version=2.4.6
  • rebuilding native dependency  name=utp-native version=2.1.4
  • packaging       platform=darwin arch=x64 electron=6.0.9 appOutDir=out/mac
  • signing         file=out/mac/PushPin.app identityName=Apple Development: hi@gozala.io (8D7MCA269Z) identityHash=6A352D05892B58444834CF73C5DC4050897B1CD2 provisioningProfile=none
  ⨯ Command failed: codesign --sign 6A352D05892B58444834CF73C5DC4050897B1CD2 --force --options runtime --entitlements /Users/gozala/Projects/pushpin/node_modules/app-builder-lib/templates/entitlements.mac.plist /Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/PushPin
/Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/PushPin: code object is not signed at all
In subcomponent: /Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/clipper-host.js
  stackTrace=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Error: Command failed: codesign --sign 6A352D05892B58444834CF73C5DC4050897B1CD2 --force --options runtime --entitlements /Users/gozala/Projects/pushpin/node_modules/app-builder-lib/templates/entitlements.mac.plist /Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/PushPin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/PushPin: code object is not signed at all
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                In subcomponent: /Users/gozala/Projects/pushpin/out/mac/PushPin.app/Contents/MacOS/clipper-host.js

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at ChildProcess.exithandler (child_process.js:301:12)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at ChildProcess.emit (events.js:219:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at maybeClose (internal/child_process.js:1027:16)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at Process.ChildProcess._handle.onexit (internal/child_process.js:285:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                From previous event:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at module.exports.execFileAsync (/Users/gozala/Projects/pushpin/node_modules/app-builder-lib/electron-osx-sign/util.js:41:10)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    at /Users/gozala/Projects/pushpin/node_modules/app-builder-lib/electron-osx-sign/sign.js:172:17
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It seems to sign app with my apple account, which seems like a wrong thing to do, but also looks like it's failing doing it.

Gozala commented 4 years ago

Seems related to https://github.com/electron-userland/electron-builder/issues/2644