Relative path for master versions
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
6054e0bef3
commit
d2b901d47f
|
@ -88,7 +88,6 @@ module.exports = Self => {
|
||||||
await fs.mkdir(branchPath, {recursive: true});
|
await fs.mkdir(branchPath, {recursive: true});
|
||||||
|
|
||||||
const destinationBranch = path.join(branchPath, `${appName}.7z`);
|
const destinationBranch = path.join(branchPath, `${appName}.7z`);
|
||||||
const destinationRoot = path.join(accessContainer.client.root, `${appName}.7z`);
|
|
||||||
const destinationRelative = `../../.archive/${appName}/${newVersion}.7z`;
|
const destinationRelative = `../../.archive/${appName}/${newVersion}.7z`;
|
||||||
try {
|
try {
|
||||||
await fs.unlink(destinationBranch);
|
await fs.unlink(destinationBranch);
|
||||||
|
@ -96,10 +95,12 @@ module.exports = Self => {
|
||||||
await fs.symlink(destinationRelative, destinationBranch);
|
await fs.symlink(destinationRelative, destinationBranch);
|
||||||
|
|
||||||
if (branch == 'master') {
|
if (branch == 'master') {
|
||||||
|
const destinationRoot = path.join(accessContainer.client.root, `${appName}.7z`);
|
||||||
|
const rootRelative = `./.archive/${appName}/${newVersion}.7z`;
|
||||||
try {
|
try {
|
||||||
await fs.unlink(destinationRoot);
|
await fs.unlink(destinationRoot);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
await fs.symlink(destinationFile, destinationRoot);
|
await fs.symlink(rootRelative, destinationRoot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue