build dist/index

pull/278/head
Alexander Brandstedt 2021-07-13 12:04:17 +02:00
parent 7b7248b494
commit ca041c4ea0
2 changed files with 2127 additions and 2122 deletions

9
dist/index.js vendored
View File

@ -230,6 +230,7 @@ class BuildParameters {
androidKeyaliasPass: input_1.default.androidKeyaliasPass,
customParameters: input_1.default.customParameters,
sshAgent: input_1.default.sshAgent,
gitCredential: input_1.default.gitCredential,
chownFilesTo: input_1.default.chownFilesTo,
remoteBuildCluster: input_1.default.remoteBuildCluster,
awsStackName: input_1.default.awsStackName,
@ -347,7 +348,7 @@ class Docker {
}
static run(image, parameters, silent = false) {
return __awaiter(this, void 0, void 0, function* () {
const { version, workspace, runnerTempPath, platform, projectPath, buildName, buildPath, buildFile, buildMethod, buildVersion, androidVersionCode, androidKeystoreName, androidKeystoreBase64, androidKeystorePass, androidKeyaliasName, androidKeyaliasPass, customParameters, sshAgent, chownFilesTo, } = parameters;
const { version, workspace, runnerTempPath, platform, projectPath, buildName, buildPath, buildFile, buildMethod, buildVersion, androidVersionCode, androidKeystoreName, androidKeystoreBase64, androidKeystorePass, androidKeyaliasName, androidKeyaliasPass, customParameters, sshAgent, gitCredential, chownFilesTo, } = parameters;
const command = `docker run \
--workdir /github/workspace \
--rm \
@ -388,6 +389,7 @@ class Docker {
--env RUNNER_TOOL_CACHE \
--env RUNNER_TEMP \
--env RUNNER_WORKSPACE \
${gitCredential ? '--env GIT_CREDENTIAL' : ''} \
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
--volume "${runnerTempPath}/_github_home":"/root" \
@ -669,6 +671,9 @@ class Input {
static get sshAgent() {
return core.getInput('sshAgent') || '';
}
static get gitCredential() {
return core.getInput('gitCredential') || '';
}
static get chownFilesTo() {
return core.getInput('chownFilesTo') || '';
}
@ -156351,7 +156356,7 @@ const testParameter = (name, filters) => {
};
const normalizeDataURL = (urlString, {stripHash}) => {
const parts = urlString.match(/^data:(.*?),(.*?)(?:#(.*))?$/);
const parts = urlString.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);
if (!parts) {
throw new Error(`Invalid URL: ${urlString}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long