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

background doesn't show up #697

Closed
changkun opened this issue Aug 25, 2016 · 3 comments
Closed

background doesn't show up #697

changkun opened this issue Aug 25, 2016 · 3 comments

Comments

@changkun
Copy link
Contributor

changkun commented Aug 25, 2016

  • Version: 5.34.1
  • Target: macOS

I've specified the background png image, other setting all correct( such as the final dmg file's title is test, which specified like the following config, the dmg window size also as same as the background.png, the icon position also correct) only the background doesn't show up and the background keep while color.

"dmg": {
        "title": "test",
        "icon": "assets/icon.icns",
        "background": "assets/background.png",
        "contents": [
            { "x": 410, "y": 150, "type": "link", "path": "/Applications" },
            { "x": 130, "y": 150, "type": "file"}
        ]
    },

What's going on here? How could I fix it?

@develar
Copy link
Member

develar commented Aug 25, 2016

Please ensure that old dmg is unmounted. LinusU/node-appdmg#40

Please set env DEBUG=electron-builder and attach debug log.

@develar develar added the mac label Aug 25, 2016
@changkun
Copy link
Contributor Author

changkun commented Aug 25, 2016

I'm sure that the old dmg is unmounted.

Here is debug log:

$ DEBUG=electron-builder npm run build-mac

> [email protected] build-mac /Users/ouchangkun/Work/Git/project-test
> build --mac

CI detected, so artifacts will be published if draft release exists
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.3.4 to dist/mac

  electron-builder Executing security find-identity -v +0ms
  electron-builder Executing security find-identity -v -p codesigning +8ms
Signing app (identity: Mac Developer: ***(****))

Creating DMG
  electron-builder appdmg: {
  "target": "/Users/ouchangkun/Work/Git/project-test/dist/mac/测试-1.0.0.dmg",
  "basepath": "/Users/ouchangkun/Work/Git/project-test",
  "specification": {
    "title": "测试",
    "icon-size": 80,
    "contents": [
      {
        "x": 410,
        "y": 150,
        "type": "link",
        "path": "/Applications"
      },
      {
        "x": 130,
        "y": 150,
        "type": "file",
        "path": "/Users/ouchangkun/Work/Git/project-test/dist/mac/测试.app"
      }
    ],
    "format": "UDBZ",
    "icon": "assets/icon.icns",
    "background": "assets/background.png"
  }
} +5s
Creating MacOS zip
  electron-builder appdmg: [1] Looking for target +6ms
  electron-builder Spawning /Users/ouchangkun/Work/Git/project-test/node_modules/7zip-bin-osx/7za a -bd -mm=Deflate /Users/ouchangkun/Work/Git/project-test/dist/mac/测试-1.0.0-mac.zip /Users/ouchangkun/Work/Git/project-test/dist/mac/测试.app +5ms
  electron-builder appdmg: [2] Reading JSON Specification +3ms
  electron-builder appdmg: [3] Parsing JSON Specification +0ms
  electron-builder appdmg: [4] Validating JSON Specification +0ms
  electron-builder appdmg: [5] Looking for files +0ms
  electron-builder appdmg: [6] Calculating size of image +1ms

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive:
156 folders, 187 files, 122991373 bytes (118 MiB)

Creating archive: /Users/ouchangkun/Work/Git/project-test/dist/mac/测试-1.0.0-mac.zip

Items to compress: 343

  electron-builder appdmg: [7] Creating temporary image +9ms
  electron-builder appdmg: [8] Mounting temporary image +2s
  electron-builder appdmg: [9] Making hidden background folder +1s
  electron-builder appdmg: [10] Copying background +0ms
  electron-builder appdmg: [11] Reading background dimensions +725ms
  electron-builder appdmg: [12] Copying icon +2ms
  electron-builder appdmg: [13] Setting icon +6ms
  electron-builder appdmg: [14] Creating links +1ms
  electron-builder appdmg: [15] Copying files +0ms
  electron-builder appdmg: [16] Making all the visuals +328ms
  electron-builder appdmg: [17] Blessing image +17ms
  electron-builder appdmg: [18] Unmounting temporary image +22ms
  electron-builder appdmg: [19] Finalizing image +159ms
  electron-builder appdmg: [20] Removing temporary image +5s

Files read from disk: 187
Archive size: 43663809 bytes (42 MiB)
Everything is Ok
  electron-builder /Users/ouchangkun/Work/Git/project-test/node_modules/7zip-bin-osx/7za (14957) exited with code 0 +2s

Now, the problem refers to : Volume name doesn't support Chinese character, see LinusU/node-appdmg#40

@develar
Copy link
Member

develar commented Aug 27, 2016

Thanks for investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants