summaryrefslogtreecommitdiff
path: root/desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-10-24 17:43:37 +0200
committerRaindropsSys <raindrops@equestria.dev>2023-10-24 17:43:37 +0200
commitae187b6d75c8079da0be1dc288613bad8466fe61 (patch)
tree5ea0d34185a2270f29ffaa65e1f5258028d7d5d0 /desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts
downloadmist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.gz
mist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.bz2
mist-ae187b6d75c8079da0be1dc288613bad8466fe61.zip
Initial commit
Diffstat (limited to 'desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts')
-rw-r--r--desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts b/desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts
new file mode 100644
index 0000000..d420151
--- /dev/null
+++ b/desktop/node_modules/@electron/osx-sign/dist/cjs/util.d.ts
@@ -0,0 +1,35 @@
+/// <reference types="node" />
+import * as child from 'child_process';
+import debug from 'debug';
+import { BaseSignOptions, ElectronMacPlatform } from './types';
+export declare const debugLog: debug.Debugger;
+export declare const debugWarn: debug.Debugger;
+export declare function execFileAsync(file: string, args: string[], options?: child.ExecFileOptions): Promise<string>;
+type DeepListItem<T> = null | T | DeepListItem<T>[];
+type DeepList<T> = DeepListItem<T>[];
+export declare function compactFlattenedList<T>(list: DeepList<T>): T[];
+/**
+ * Returns the path to the "Contents" folder inside the application bundle
+ */
+export declare function getAppContentsPath(opts: BaseSignOptions): string;
+/**
+ * Returns the path to app "Frameworks" within contents.
+ */
+export declare function getAppFrameworksPath(opts: BaseSignOptions): string;
+export declare function detectElectronPlatform(opts: BaseSignOptions): Promise<ElectronMacPlatform>;
+/**
+ * This function returns a promise validating opts.app, the application to be signed or flattened.
+ */
+export declare function validateOptsApp(opts: BaseSignOptions): Promise<void>;
+/**
+ * This function returns a promise validating opts.platform, the platform of Electron build. It allows auto-discovery if no opts.platform is specified.
+ */
+export declare function validateOptsPlatform(opts: BaseSignOptions): Promise<ElectronMacPlatform>;
+/**
+ * This function returns a promise resolving all child paths within the directory specified.
+ * @function
+ * @param {string} dirPath - Path to directory.
+ * @returns {Promise} Promise resolving child paths needing signing in order.
+ */
+export declare function walkAsync(dirPath: string): Promise<string[]>;
+export {};