-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…blish to npm.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules | ||
dist | ||
*.app |
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>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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[]>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 {}; |