mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-22 03:05:13 -04:00
😎 Remove lock files
This commit is contained in:
parent
260482d8f3
commit
e4b7a1e289
1 changed files with 21 additions and 32 deletions
|
@ -15,7 +15,6 @@ import { matchImages } from "./utils/matchImages";
|
||||||
export class BitmapsGenerator {
|
export class BitmapsGenerator {
|
||||||
private readonly staticCurs: Cursors;
|
private readonly staticCurs: Cursors;
|
||||||
private readonly animatedCurs: Cursors;
|
private readonly animatedCurs: Cursors;
|
||||||
private infoFilePath = path.resolve(this.bitmapsDir, ".info");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param source `BitmapsGenerator` Class's object arguments.
|
* @param source `BitmapsGenerator` Class's object arguments.
|
||||||
|
@ -47,10 +46,6 @@ export class BitmapsGenerator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private writeRenderInfo() {
|
|
||||||
fs.writeFileSync(this.infoFilePath, "", { encoding: "utf-8" });
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @argument browser `puppeteer` browser instance.
|
* @argument browser `puppeteer` browser instance.
|
||||||
* @argument content `.svg` file code.
|
* @argument content `.svg` file code.
|
||||||
|
@ -179,10 +174,6 @@ export class BitmapsGenerator {
|
||||||
spinner.text = ` Preparing ${this.themeName} .svg files...`;
|
spinner.text = ` Preparing ${this.themeName} .svg files...`;
|
||||||
spinner.start();
|
spinner.start();
|
||||||
|
|
||||||
if (fs.existsSync(this.infoFilePath)) {
|
|
||||||
spinner.color = "white";
|
|
||||||
spinner.succeed(`Skipping ${this.themeName} (Already rendered)`);
|
|
||||||
} else {
|
|
||||||
// About browser args => https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md#disabling-the-sandbox
|
// About browser args => https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md#disabling-the-sandbox
|
||||||
// Issue => https://github.com/ful1e5/Bibata_Cursor/issues/75#issuecomment-703236554
|
// Issue => https://github.com/ful1e5/Bibata_Cursor/issues/75#issuecomment-703236554
|
||||||
const browser = await puppeteer.launch({
|
const browser = await puppeteer.launch({
|
||||||
|
@ -200,7 +191,6 @@ export class BitmapsGenerator {
|
||||||
)} bitmaps stored at ${chalk.greenBright(`${this.bitmapsDir}`)}`;
|
)} bitmaps stored at ${chalk.greenBright(`${this.bitmapsDir}`)}`;
|
||||||
|
|
||||||
spinner.color = "white";
|
spinner.color = "white";
|
||||||
this.writeRenderInfo();
|
|
||||||
spinner.succeed();
|
spinner.succeed();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
@ -209,4 +199,3 @@ export class BitmapsGenerator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue