Merge pull request 'MASTER_hot_fix(mdb): use relative path' (#1038) from useRelativePath into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1038 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
748e7ff5ea
|
@ -88,17 +88,19 @@ 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`;
|
||||||
try {
|
try {
|
||||||
await fs.unlink(destinationBranch);
|
await fs.unlink(destinationBranch);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
await fs.symlink(destinationFile, 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