Skip to content

Commit e94e85b

Browse files
authored
Merge pull request #234 from eatradish/fix-eide-project-template-export-on-linux
fix: zip project template 7za failed, return code 7
2 parents 0ba1a0a + 62398a2 commit e94e85b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Compress.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export type SevenZipUnzipExcludeList = { name: string, recurse?: boolean }[];
4040
export class SevenZipper {
4141

4242
static readonly MaxStep = 18;
43-
static readonly ExcludeCmdSep = platform.osType() == 'win32' ? '!' : '\\!';
4443

4544
private _7za: File;
4645
private _event: events.EventEmitter;
@@ -155,7 +154,7 @@ export class SevenZipper {
155154

156155
if (option.excludeList) {
157156
for (let excludeReg of option.excludeList) {
158-
paramList.push('-xr' + SevenZipper.ExcludeCmdSep + excludeReg.trim());
157+
paramList.push('-xr!' + excludeReg.trim());
159158
}
160159
}
161160

0 commit comments

Comments
 (0)