Skip to content

Delete .lproj files after package #2248

@linonetwo

Description

@linonetwo

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

I hope I can delete all .lproj files, because they seems useless (I'm using i18next npm package instead)

Proposed Solution

Follow https://ganeshrvel.medium.com/electron-builder-afterpack-configuration-5c2c986be665

But this won't call scripts/afterPack.js

"config": {
    "forge": {
      "packagerConfig": {
        "icon": "build-resources/icon.icns",
        "asar": {
          "unpack": "**/.webpack/main/*.worker.*"
        },
        "extraResource": [
          "localization",
          "template/wiki"
        ],
        "mac": {
          "category": "productivity",
          "target": "dmg",
          "icon": "build-resources/icon.icns",
          "electronLanguages": [
            "zh_CN",
            "en",
            "ja"
          ]
        },
        "postPackage": "scripts/afterPack.js"
      },
      "makers": [

Alternatives Considered

Try other hooks likes afterCopy

Additional Information

I'm putting my own things into resources folder, and checking them is hard because there are too many annoying lproj files, and they are not related to my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions