Release v1.0.0-mc1.12.2.
This commit is contained in:
parent
1012bf11ba
commit
fe01dca831
6 changed files with 27 additions and 10 deletions
16
scripts/sync-main-repo.js
Normal file
16
scripts/sync-main-repo.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/djs
|
||||
"use strict";
|
||||
const main_repo_local = fs.realpath("../engineersdecor-github");
|
||||
if((!fs.chdir(fs.dirname(fs.realpath(sys.script))+"/..")) || (!fs.isdir(".git"))) throw new Error("Failed to switch to mod source directory.");
|
||||
const test_repo_local = fs.cwd();
|
||||
if(main_repo_local == "") throw new Error("Main repository (real) path not found.");
|
||||
if(fs.realpath(main_repo_local) == fs.realpath(test_repo_local)) throw new Error("This is already the main repository");
|
||||
if((!fs.chdir(main_repo_local)) || (!fs.isdir(".git"))) throw new Error("Failed to switch to main repository directory.");
|
||||
if(fs.cwd().search("-github") < 0) throw new Error("Main repository is missing the '*-github' tag in the path name.");
|
||||
sys.shell("rm -rf build documentation gradle meta scripts src")
|
||||
sys.shell("rm -f .gitignore build.gradle gradle.properties gradlew gradlew.bat license Makefile readme.md")
|
||||
if((!fs.chdir(test_repo_local)) || (!fs.isdir(".git"))) throw new Error("Failed to switch to local dev directory.");
|
||||
sys.shell("cp -r documentation gradle meta scripts src " + main_repo_local + "/")
|
||||
sys.shell("cp .gitignore build.gradle gradle.properties gradlew gradlew.bat license Makefile readme.md " + main_repo_local + "/")
|
||||
if((!fs.chdir(main_repo_local)) || (!fs.isdir(".git"))) throw new Error("Failed to switch to main repository directory.");
|
||||
print(sys.shell("git status -s"))
|
|
@ -54,7 +54,7 @@ for(var ver in history) { latest_beta=ver; break; }
|
|||
for(var ver in history) if(ver.search(/(rc|b|a)/) < 0) { latest_release=ver; break; }
|
||||
|
||||
var update_json = {
|
||||
homepage: "https://www.curseforge.com/minecraft/mc-mods/redstone-gauges-and-switches/",
|
||||
homepage: "https://www.curseforge.com/minecraft/mc-mods/engineers-decor/",
|
||||
"1.12.2": history,
|
||||
promos: {
|
||||
"1.12.2-recommended": latest_release,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue