diff --git a/README.md b/README.md index e3554aa..e64f5a1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@
# Action-SpigotMC -This Action allows you to easily compile Minecraft Spigot +This Action allows you to easily compile Minecraft Spigot or Paper and install it in your runners local maven repository. Supported: @@ -49,13 +49,6 @@ as they are set automatically. # Example: latest, 1.14.4, 1.8.8 versions: latest - # A comma-separated list of build targets - # This value is later given to the BuildTools.jar as '--compile' argument - # - # Available: None, Spigot, CraftBukkit - # Example: Spigot, CraftBukkit - target: Spigot - # Should sources be generated? # If enabled, BuildTools is provided the '--generate-source' argument generateSrc: false diff --git a/action.yml b/action.yml index aaa893a..8a3c078 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ -name: Compile Minecraft Spigot (BuildTools) -description: Makes it easier to compile multiple Spigot versions at the same time and speed up clean builds +name: Compile Minecraft Spigot or Paper (BuildTools) +description: Makes it easier to compile multiple Spigot/Paper versions at the same time and speed up clean builds author: Christian Koop branding: @@ -11,10 +11,6 @@ inputs: required: false default: latest description: Versions to build (sperate multiple with ',') - target: - required: false - default: Spigot - description: Select what exactly you want to compile (none, Spigot, CraftBukkit) (sperate multiple with ',') generateSrc: required: false default: 'false' diff --git a/dist/index.js b/dist/index.js index 789dd50..3459989 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ -require('./sourcemap-register.js');module.exports=(()=>{var t={7351:function(t,e,n){"use strict";var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)if(Object.hasOwnProperty.call(t,n))e[n]=t[n];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const r=i(n(2087));const o=n(5278);function issueCommand(t,e,n){const i=new Command(t,e,n);process.stdout.write(i.toString()+r.EOL)}e.issueCommand=issueCommand;function issue(t,e=""){issueCommand(t,{},e)}e.issue=issue;const a="::";class Command{constructor(t,e,n){if(!t){t="missing.command"}this.command=t;this.properties=e;this.message=n}toString(){let t=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const i=this.properties[n];if(i){if(e){e=false}else{t+=","}t+=`${n}=${escapeProperty(i)}`}}}}t+=`${a}${escapeData(this.message)}`;return t}}function escapeData(t){return o.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return o.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){function adopt(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,r){function fulfilled(t){try{step(i.next(t))}catch(t){r(t)}}function rejected(t){try{step(i["throw"](t))}catch(t){r(t)}}function step(t){t.done?n(t.value):adopt(t.value).then(fulfilled,rejected)}step((i=i.apply(t,e||[])).next())})};var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)if(Object.hasOwnProperty.call(t,n))e[n]=t[n];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const o=n(7351);const a=n(717);const s=n(5278);const c=r(n(2087));const u=r(n(5622));var f;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(f=e.ExitCode||(e.ExitCode={}));function exportVariable(t,e){const n=s.toCommandValue(e);process.env[t]=n;const i=process.env["GITHUB_ENV"]||"";if(i){const e="_GitHubActionsFileCommandDelimeter_";const i=`${t}<<${e}${c.EOL}${n}${c.EOL}${e}`;a.issueCommand("ENV",i)}else{o.issueCommand("set-env",{name:t},n)}}e.exportVariable=exportVariable;function setSecret(t){o.issueCommand("add-mask",{},t)}e.setSecret=setSecret;function addPath(t){const e=process.env["GITHUB_PATH"]||"";if(e){a.issueCommand("PATH",t)}else{o.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${u.delimiter}${process.env["PATH"]}`}e.addPath=addPath;function getInput(t,e){const n=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!n){throw new Error(`Input required and not supplied: ${t}`)}return n.trim()}e.getInput=getInput;function setOutput(t,e){o.issueCommand("set-output",{name:t},e)}e.setOutput=setOutput;function setCommandEcho(t){o.issue("echo",t?"on":"off")}e.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=f.Failure;error(t)}e.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}e.isDebug=isDebug;function debug(t){o.issueCommand("debug",{},t)}e.debug=debug;function error(t){o.issue("error",t instanceof Error?t.toString():t)}e.error=error;function warning(t){o.issue("warning",t instanceof Error?t.toString():t)}e.warning=warning;function info(t){process.stdout.write(t+c.EOL)}e.info=info;function startGroup(t){o.issue("group",t)}e.startGroup=startGroup;function endGroup(){o.issue("endgroup")}e.endGroup=endGroup;function group(t,e){return i(this,void 0,void 0,function*(){startGroup(t);let n;try{n=yield e()}finally{endGroup()}return n})}e.group=group;function saveState(t,e){o.issueCommand("save-state",{name:t},e)}e.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}e.getState=getState},717:function(t,e,n){"use strict";var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)if(Object.hasOwnProperty.call(t,n))e[n]=t[n];e["default"]=t;return e};Object.defineProperty(e,"__esModule",{value:true});const r=i(n(5747));const o=i(n(2087));const a=n(5278);function issueCommand(t,e){const n=process.env[`GITHUB_${t}`];if(!n){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!r.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}r.appendFileSync(n,`${a.toCommandValue(e)}${o.EOL}`,{encoding:"utf8"})}e.issueCommand=issueCommand},5278:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}e.toCommandValue=toCommandValue},7888:function(t,e){(function(t,n){true?n(e):0})(this,function(t){"use strict";function apply(t,...e){return(...n)=>t(...e,...n)}function initialParams(t){return function(...e){var n=e.pop();return t.call(this,e,n)}}var e=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(t){setTimeout(t,0)}function wrap(t){return(e,...n)=>t(()=>e(...n))}var i;if(e){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var r=wrap(i);function asyncify(t){if(isAsync(t)){return function(...e){const n=e.pop();const i=t.apply(this,e);return handlePromise(i,n)}}return initialParams(function(e,n){var i;try{i=t.apply(this,e)}catch(t){return n(t)}if(i&&typeof i.then==="function"){return handlePromise(i,n)}else{n(null,i)}})}function handlePromise(t,e){return t.then(t=>{invokeCallback(e,null,t)},t=>{invokeCallback(e,t&&t.message?t:new Error(t))})}function invokeCallback(t,e,n){try{t(e,n)}catch(t){r(t=>{throw t},t)}}function isAsync(t){return t[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(t){return typeof t[Symbol.asyncIterator]==="function"}function wrapAsync(t){if(typeof t!=="function")throw new Error("expected a function");return isAsync(t)?asyncify(t):t}function awaitify(t,e=t.length){if(!e)throw new Error("arity is undefined");function awaitable(...n){if(typeof n[e-1]==="function"){return t.apply(this,n)}return new Promise((i,r)=>{n[e-1]=((t,...e)=>{if(t)return r(t);i(e.length>1?e:e[0])});t.apply(this,n)})}return awaitable}function applyEach(t){return function applyEach(e,...n){const i=awaitify(function(i){var r=this;return t(e,(t,e)=>{wrapAsync(t).apply(r,n.concat(e))},i)});return i}}function _asyncMap(t,e,n,i){e=e||[];var r=[];var o=0;var a=wrapAsync(n);return t(e,(t,e,n)=>{var i=o++;a(t,(t,e)=>{r[i]=e;n(t)})},t=>{i(t,r)})}function isArrayLike(t){return t&&typeof t.length==="number"&&t.length>=0&&t.length%1===0}const o={};function once(t){function wrapper(...e){if(t===null)return;var n=t;t=null;n.apply(this,e)}Object.assign(wrapper,t);return wrapper}function getIterator(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function createArrayIterator(t){var e=-1;var n=t.length;return function next(){return++e