@@ -7,7 +7,7 @@ import { spawn } from "child_process";
7
7
import { window , type OutputChannel } from "vscode" ;
8
8
import open from "open" ;
9
9
10
- async function clearOutput ( channel : OutputChannel ) : Promise < void > {
10
+ export async function clearOutput ( channel : OutputChannel ) : Promise < void > {
11
11
const { alwaysShowOutput } = await getConfig ( "pynsist" ) ;
12
12
13
13
channel . clear ( ) ;
@@ -16,7 +16,7 @@ async function clearOutput(channel: OutputChannel): Promise<void> {
16
16
}
17
17
}
18
18
19
- async function detectOutput (
19
+ export async function detectOutput (
20
20
relativePath : string ,
21
21
line : string ,
22
22
needle : DetectOutputOptions ,
@@ -48,11 +48,11 @@ async function fileExists(filePath: string): Promise<boolean> {
48
48
return true ;
49
49
}
50
50
51
- function getPrefix ( ) : string {
51
+ export function getPrefix ( ) : string {
52
52
return platform ( ) === "win32" ? "/" : "-" ;
53
53
}
54
54
55
- async function getPath ( ) : Promise < string | number > {
55
+ export async function getPath ( ) : Promise < string | number > {
56
56
const pathToPynsist = ( await getConfig ( "pynsist.pathToPynsist" ) ) || "pynsist" ;
57
57
58
58
return new Promise ( ( resolve , reject ) => {
@@ -82,7 +82,7 @@ async function getPath(): Promise<string | number> {
82
82
} ) ;
83
83
}
84
84
85
- function pathWarning ( ) : void {
85
+ export function pathWarning ( ) : void {
86
86
window
87
87
. showWarningMessage (
88
88
"pynsist is not installed or missing in your PATH environment variable" ,
@@ -102,7 +102,7 @@ function pathWarning(): void {
102
102
} ) ;
103
103
}
104
104
105
- async function runInstaller ( outFile : string ) : Promise < void > {
105
+ export async function runInstaller ( outFile : string ) : Promise < void > {
106
106
const { useWineToRun } = getConfig ( "pynsist" ) ;
107
107
108
108
if ( platform ( ) === "win32" ) {
@@ -113,16 +113,6 @@ async function runInstaller(outFile: string): Promise<void> {
113
113
}
114
114
}
115
115
116
- function sanitize ( response : string ) : string {
116
+ export function sanitize ( response : string ) : string {
117
117
return response . toString ( ) . trim ( ) ;
118
118
}
119
-
120
- export {
121
- clearOutput ,
122
- detectOutput ,
123
- getPrefix ,
124
- getPath ,
125
- pathWarning ,
126
- runInstaller ,
127
- sanitize ,
128
- } ;
0 commit comments