Skip to content
This repository was archived by the owner on Oct 13, 2024. It is now read-only.

Commit e3c7eb4

Browse files
committed
Add args option
1 parent cc36c2e commit e3c7eb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ You can configure the action further with the following options:
7575
- `build_script_name`: Name of the optional NPM build script which is executed before `electron-builder` (default: `"build"`)
7676
- `skip_build`: Whether the action should execute the NPM build script before running `electron-builder`
7777
- `use_vue_cli`: Whether to run `electron-builder` using the [Vue CLI plugin](https://nklayman.github.io/vue-cli-plugin-electron-builder) instead of calling the command directly
78+
- `args`: Other arguments to pass to the `electron-builder` command, e.g. configuration overrides (default: `""`)
7879

7980
See [`action.yml`](./action.yml) for a list of all possible input variables.
8081

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const runAction = () => {
7070
const buildScriptName = getInput("build_script_name", true);
7171
const skipBuild = getInput("skip_build") === "true";
7272
const useVueCli = getInput("use_vue_cli") === "true";
73+
const args = getInput("args") || "";
7374

7475
// TODO: Deprecated option, remove in v2.0. `electron-builder` always requires a `package.json` in
7576
// the same directory as the Electron app, so the `package_root` option should be used instead
@@ -128,7 +129,7 @@ const runAction = () => {
128129
run(
129130
`${useNpm ? "npx --no-install" : "yarn run"} ${cmd} --${platform} ${
130131
release ? "--publish always" : ""
131-
}`,
132+
} ${args}`,
132133
appRoot,
133134
);
134135
};

0 commit comments

Comments
 (0)