changed manifest for easier update #97

Merged
oskaloq merged 7 commits from Manifest-change into develop 2024-04-01 19:30:20 +02:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit cd24173796 - Show all commits

View File

@ -375,7 +375,7 @@ async function packageBuild() {
if (!fs.existsSync(distPath)) fs.mkdirSync(distPath);
// Initialize the zip file
const zipName = `${manifest.file.name}-v${manifest.file.version}.zip`;
const zipName = `${manifest.file.name}.zip`;
const zipFile = fs.createWriteStream(zipName);
const zip = archiver("zip", { zlib: { level: 9 } });
zipFile.on("close", () => {
@ -473,8 +473,8 @@ const updateManifest = (cb: any) => {
const result = `${repoURL}/releases/download`;
manifest.file.url = repoURL;
manifest.file.manifest = `${result}/v${manifest.file.version}/${manifest.name}`;
manifest.file.download = `${result}/v${manifest.file.version}/${manifest.file.name}-v${manifest.file.version}.zip`;
manifest.file.manifest = `${result}/latest/${manifest.name}`;
manifest.file.download = `${result}/latest/${manifest.file.name}.zip`;
const prettyProjectJson = stringify(manifest.file, {
maxLength: 35,
@ -504,7 +504,7 @@ const gitTaskBuild = (cb: gulp.TaskFunctionCallback) => {
if (!manifest) return cb(Error("could not load manifest."));
return gulp
.src(`${manifest.file.name}-v${manifest.file.version}.zip`)
.src(`${manifest.file.name}.zip`)
.pipe(git.checkout(`v${manifest.file.version}`, { args: "-b" }))
.pipe(git.add({ args: "--no-all -f" }))
.pipe(git.commit(`v${manifest.file.version}`, { args: "-a", disableAppendPaths: true }));