Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Console Package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Console Package
Commits
43f126ef
Commit
43f126ef
authored
Aug 10, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no symlink
parent
b0fc8edc
Pipeline
#4605
passed with stages
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.ts
main.ts
+2
-2
No files found.
main.ts
View file @
43f126ef
...
@@ -176,7 +176,7 @@ async function main(package_id) {
...
@@ -176,7 +176,7 @@ async function main(package_id) {
`
${
archive_checksum
}
.tar.gz`
,
`
${
archive_checksum
}
.tar.gz`
,
);
);
await
fs
.
promises
.
unlink
(
link_file
).
catch
(
nothing
);
await
fs
.
promises
.
unlink
(
link_file
).
catch
(
nothing
);
await
fs
.
promises
.
symlink
(
archive_file
,
link_file
);
await
fs
.
promises
.
copyFile
(
archive_file
,
link_file
);
// 整包的meta4
// 整包的meta4
const
metalink
=
Mustache
.
render
(
template
,
{
const
metalink
=
Mustache
.
render
(
template
,
{
...
@@ -237,7 +237,7 @@ async function main(package_id) {
...
@@ -237,7 +237,7 @@ async function main(package_id) {
);
);
const
link_file
=
path
.
join
(
release_path
,
'
dist
'
,
`
${
checksum
}
.tar.gz`
);
const
link_file
=
path
.
join
(
release_path
,
'
dist
'
,
`
${
checksum
}
.tar.gz`
);
await
fs
.
promises
.
unlink
(
link_file
).
catch
(
nothing
);
await
fs
.
promises
.
unlink
(
link_file
).
catch
(
nothing
);
await
fs
.
promises
.
symlink
(
archive_file
,
link_file
);
await
fs
.
promises
.
copyFile
(
archive_file
,
link_file
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment