Skip to content

Commit

Permalink
fix: rename Helper exe inside Contents/MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Oct 2, 2023
1 parent b172c98 commit eaa0b4b
Showing 1 changed file with 44 additions and 14 deletions.
58 changes: 44 additions & 14 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Alerts).app`,
"nwjs Helper (Alerts).app",
"Contents",
"Info.plist",
),
Expand All @@ -295,7 +295,7 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (GPU).app`,
"nwjs Helper (GPU).app",
"Contents",
"Info.plist",
),
Expand All @@ -309,7 +309,7 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Plugin).app`,
"nwjs Helper (Plugin).app",
"Contents",
"Info.plist",
),
Expand All @@ -323,7 +323,7 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Renderer).app`,
"nwjs Helper (Renderer).app",
"Contents",
"Info.plist",
),
Expand All @@ -337,7 +337,7 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper.app`,
"nwjs Helper.app",
"Contents",
"Info.plist",
),
Expand Down Expand Up @@ -366,6 +366,9 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"nwjs Framework.framework",
"Helpers",
"nwjs Helper.app",
"Contents",
"MacOS",
"nwjs Helper",
),
resolve(
outDir,
Expand All @@ -374,7 +377,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper.app`,
"nwjs Helper.app",
"Contents",
"MacOS",
`${app.name} Helper`,
),
);

Expand All @@ -387,7 +393,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`nwjs Helper (Alerts).app`,
"nwjs Helper (Alerts).app",
"Contents",
"MacOS",
"nwjs Helper (Alerts)",
),
resolve(
outDir,
Expand All @@ -396,7 +405,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Alerts).app`,
"nwjs Helper (Alerts).app",
"Contents",
"MacOS",
`${app.name} Helper (Alerts)`,
),
);

Expand All @@ -409,7 +421,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`nwjs Helper (GPU).app`,
"nwjs Helper (GPU).app",
"Contents",
"MacOS",
"nwjs Helper (GPU)",
),
resolve(
outDir,
Expand All @@ -418,7 +433,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (GPU).app`,
"nwjs Helper (GPU).app",
"Contents",
"MacOS",
`${app.name} Helper (GPU)`,
),
);

Expand All @@ -431,7 +449,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`nwjs Helper (Plugin).app`,
"nwjs Helper (Plugin).app",
"Contents",
"MacOS",
"nwjs Helper (Plugin)",
),
resolve(
outDir,
Expand All @@ -440,7 +461,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Plugin).app`,
"nwjs Helper (Plugin).app",
"Contents",
"MacOS",
`${app.name} Helper (Plugin)`,
),
);

Expand All @@ -453,7 +477,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`nwjs Helper (Renderer).app`,
"nwjs Helper (Renderer).app",
"Contents",
"MacOS",
"nwjs Helper (Renderer)",
),
resolve(
outDir,
Expand All @@ -462,7 +489,10 @@ export async function build(files, nwDir, outDir, platform, zip, app) {
"Frameworks",
"nwjs Framework.framework",
"Helpers",
`${app.name} Helper (Renderer).app`,
"nwjs Helper (Renderer).app",
"Contents",
"MacOS",
`${app.name} Helper (Renderer)`,
),
);

Expand Down

0 comments on commit eaa0b4b

Please sign in to comment.