question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

latest-mac.yml doesn't take into account artifactName configuration for .zip build

See original GitHub issue

The generated latest-mac.yml file doesn’t use the configured name format for the macOS zip build.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mlynchcommented, Oct 25, 2018

Can confirm this is still happening in 20.28.4, when using a github repo. I’m wondering if it’s because I have a build config in package.json and an electron-builder.yml that are clashing?

screen shot 2018-10-25 at 11 31 11 am

Here’s my build config, notice how the artifact name has been specified a few times, yet for some reason the build/package script is still using the name field in package.json

  "build": {
    "appId": "com.ionicframework.studio",
    "productName": "Ionic Studio",
    "artifactName": "Ionic Studio ${version}.${ext}",
    "directories": {
      "buildResources": "resources"
    },
    "files": [
      "!src",
      "!dist",
      "!embedded.provisionprofile",
      "!sentry-symbols.js",
      "!resources",
      "!stencil.config.js",
      "!test"
    ],
    "extraFiles": [
      "node_modules/**/*"
    ],
    "win": {
      "artifactName": "Ionic Studio ${version}.${ext}",
      "target": [
        "nsis",
        "zip"
      ]
    },
    "mac": {
      "artifactName": "Ionic Studio ${version}.${ext}",
      "category": "public.app-category.productivity",
      "entitlements": "resources/entitlements.mac.plist",
      "icon": "resources/icon.png",
      "target": [
        "dmg",
        "pkg",
        "zip"
      ],
      "provisioningProfile": "embedded.provisionprofile"
    },
    "publish": {
      "provider": "github",
      "repo": "...",
      "owner": "..."
    }
  },

And the generated latest-mac.yml:

version: 0.0.22
files:
  - url: '@ionic/studio-0.0.22-mac.zip'
    sha512: g+MycWIfyzpFj7z09J7Y6730QOXvsjqLErcW29d9IJYlpTh41PG7FYS8y0lpH0l2SijsAvlhB2o3OGw4XN/idA==
  - url: '@ionic/studio-0.0.22.dmg'
    sha512: nrSLQs238RduHUDMSqx/cN4G0qxhmqDAwkeLkYJ1CmqVeQGl71yscuCwmraNiVz8au0UurXvwd93Dnf9fw0xMQ==
    size: 241038542
path: '@ionic/studio-0.0.22-mac.zip'
sha512: g+MycWIfyzpFj7z09J7Y6730QOXvsjqLErcW29d9IJYlpTh41PG7FYS8y0lpH0l2SijsAvlhB2o3OGw4XN/idA==
releaseDate: '2018-10-25T16:30:30.387Z'
0reactions
stale[bot]commented, Jul 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Configuration - electron-builder
Common Configuration. electron-builder configuration can be defined. in the package.json file of your project using the build key on the top level:.
Read more >
Can build code but "Release Pipeline" says no artifact was ...
Release says no artifact was produced by pipeline, check pipeline. ** Before run "No version is ... Can't create manual builds step, seems...
Read more >
Sample config.yml Files - CircleCI
This document provides sample .circleci/config.yml files, as follows: CirlceCI has created an extension for Visual Studio Code that reduces context ...
Read more >
Packaging artifacts - AppVeyor
The Artifacts page in the project settings tells AppVeyor which files and folders should be uploaded to AppVeyor cloud storage during the build....
Read more >
Configuration options | Yarn - Package Manager
Yarnrc files (named this way because they must be called .yarnrc.yml ) ... Yaml and have the right extension (simply calling your file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found