mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
fixed ext2fs regex
This commit is contained in:
parent
b59b171e43
commit
6e24d25576
@ -92,10 +92,9 @@ function findExt2fsFolder(): string {
|
|||||||
|
|
||||||
function makeExt2FsRegex(): RegExp {
|
function makeExt2FsRegex(): RegExp {
|
||||||
const folder = findExt2fsFolder();
|
const folder = findExt2fsFolder();
|
||||||
const libpath = '/lib/libext2fs\\.js&';
|
const libpath = '/lib/libext2fs\\.js$';
|
||||||
|
|
||||||
const regex = folder.concat(libpath).split('/').join('/');
|
return new RegExp(folder.concat(libpath));
|
||||||
return new RegExp(regex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function findUsbPrebuild(): string[] {
|
function findUsbPrebuild(): string[] {
|
||||||
@ -173,7 +172,6 @@ function slashOrAntislash(pattern: RegExp): RegExp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function replace(test: RegExp, ...replacements: ReplacementRule[]) {
|
function replace(test: RegExp, ...replacements: ReplacementRule[]) {
|
||||||
console.log(test.source);
|
|
||||||
return {
|
return {
|
||||||
loader: 'string-replace-loader',
|
loader: 'string-replace-loader',
|
||||||
// Handle windows path separators
|
// Handle windows path separators
|
||||||
@ -416,8 +414,6 @@ const guiConfigCopyPatterns = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log(guiConfigCopyPatterns);
|
|
||||||
|
|
||||||
if (os.platform() === 'win32') {
|
if (os.platform() === 'win32') {
|
||||||
// liblzma.dll is required on Windows for lzma-native
|
// liblzma.dll is required on Windows for lzma-native
|
||||||
guiConfigCopyPatterns.push({
|
guiConfigCopyPatterns.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user