This repository was archived by the owner on Mar 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
2+ ## 3.0.0 - 2026-03-16
3+ - Remove deprecated ` file ` arguments - use ` files `
4+
25## 2.5.2 - 2026-03-16
36- Actually fix last botched release
47
Original file line number Diff line number Diff line change @@ -5,13 +5,9 @@ branding:
55 icon : file-minus
66 color : blue
77inputs :
8- file :
9- description : ' Local file to pack (deprecated, prefer `files`)'
10- required : true
11- deprecationMessage : ' Prefer "files" supporting globs instead of "file"'
128 files :
139 description : ' Newline separated globs to pack'
14- required : false
10+ required : true
1511 args :
1612 description : ' Arguments to pass to UPX'
1713 strip :
Original file line number Diff line number Diff line change @@ -30980,7 +30980,7 @@ async function downloadUpx() {
3098030980 }
3098130981 throw 'unsupported OS';
3098230982}
30983- function resolve (input) {
30983+ function resolve_files (input) {
3098430984 return input
3098530985 .split(/\r?\n/)
3098630986 .map(line => line.trim())
@@ -30991,8 +30991,7 @@ function resolve(input) {
3099130991}
3099230992async function run() {
3099330993 try {
30994- const paths = resolve(getInput('files', { required: false }) ||
30995- getInput('file', { required: false }));
30994+ const paths = resolve_files(getInput('files', { required: true }));
3099630995 const args = getInput('args');
3099730996 const strip = getInput('strip') || 'true';
3099830997 const strip_args = getInput('strip_args');
@@ -31022,7 +31021,10 @@ async function run() {
3102231021 throw error;
3102331022 }
3102431023}
31025- run();
31024+ const isMainModule = process.argv[1] && process.argv[1].endsWith('main.js');
31025+ if (isMainModule) {
31026+ run();
31027+ }
3102631028
3102731029var __webpack_exports__run = __webpack_exports__.e;
3102831030export { __webpack_exports__run as run };
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async function downloadUpx(): Promise<string> {
3939 throw 'unsupported OS'
4040}
4141
42- function resolve ( input : string ) : string [ ] {
42+ function resolve_files ( input : string ) : string [ ] {
4343 return input
4444 . split ( / \r ? \n / )
4545 . map ( line => line . trim ( ) )
@@ -53,10 +53,7 @@ function resolve(input: string): string[] {
5353
5454export async function run ( ) : Promise < void > {
5555 try {
56- const paths = resolve (
57- core . getInput ( 'files' , { required : false } ) ||
58- core . getInput ( 'file' , { required : false } )
59- )
56+ const paths = resolve_files ( core . getInput ( 'files' , { required : true } ) )
6057
6158 const args = core . getInput ( 'args' )
6259 const strip = core . getInput ( 'strip' ) || 'true'
@@ -93,4 +90,7 @@ export async function run(): Promise<void> {
9390 }
9491}
9592
96- run ( )
93+ const isMainModule = process . argv [ 1 ] && process . argv [ 1 ] . endsWith ( 'main.js' )
94+ if ( isMainModule ) {
95+ run ( )
96+ }
You can’t perform that action at this time.
0 commit comments