Skip to content

Commit

Permalink
Remove dist from gitignore and check-in, since we are not going to pu…
Browse files Browse the repository at this point in the history
…blish to npm.
  • Loading branch information
jhohiselkeeper committed Mar 16, 2022
1 parent 885fbde commit 0d7b8be
Show file tree
Hide file tree
Showing 31 changed files with 1,091 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
dist
*.app
23 changes: 23 additions & 0 deletions dist/cjs/asar-utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export declare enum AsarMode {
NO_ASAR = 0,
HAS_ASAR = 1,
}
export declare type MergeASARsOptions = {
x64AsarPath: string;
arm64AsarPath: string;
outputAsarPath: string;
singleArchFiles?: string;
};
export declare const detectAsarMode: (appPath: string) => Promise<AsarMode>;
export declare const generateAsarIntegrity: (
asarPath: string,
) => {
algorithm: 'SHA256';
hash: string;
};
export declare const mergeASARs: ({
x64AsarPath,
arm64AsarPath,
outputAsarPath,
singleArchFiles,
}: MergeASARsOptions) => Promise<void>;
156 changes: 156 additions & 0 deletions dist/cjs/asar-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/asar-utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/cjs/debug.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import * as debug from 'debug';
export declare const d: debug.Debugger;
6 changes: 6 additions & 0 deletions dist/cjs/debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/debug.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dist/cjs/file-utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export declare enum AppFileType {
MACHO = 0,
PLAIN = 1,
INFO_PLIST = 2,
SNAPSHOT = 3,
APP_CODE = 4,
}
export declare type AppFile = {
relativePath: string;
type: AppFileType;
};
/**
*
* @param appPath Path to the application
*/
export declare const getAllAppFiles: (appPath: string) => Promise<AppFile[]>;
71 changes: 71 additions & 0 deletions dist/cjs/file-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/file-utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
declare type MakeUniversalOpts = {
/**
* Absolute file system path to the x64 version of your application. E.g. /Foo/bar/MyApp_x64.app
*/
x64AppPath: string;
/**
* Absolute file system path to the arm64 version of your application. E.g. /Foo/bar/MyApp_arm64.app
*/
arm64AppPath: string;
/**
* Absolute file system path you want the universal app to be written to. E.g. /Foo/var/MyApp_universal.app
*
* If this file exists it will be overwritten ONLY if "force" is set to true
*/
outAppPath: string;
/**
* Forcefully overwrite any existing files that are in the way of generating the universal application
*/
force: boolean;
/**
* Merge x64 and arm64 ASARs into one.
*/
mergeASARs?: boolean;
/**
* Minimatch pattern of paths that are allowed to be present in one of the ASAR files, but not in the other.
*/
singleArchFiles?: string;
};
export declare const makeUniversalApp: (opts: MakeUniversalOpts) => Promise<void>;
export {};
Loading

0 comments on commit 0d7b8be

Please sign in to comment.