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
d56f7529
Commit
d56f7529
authored
Aug 10, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recent changes
parent
f9cad75f
Pipeline
#4595
failed with stages
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
Dockerfile
Dockerfile
+6
-1
main.ts
main.ts
+5
-5
template.meta4
template.meta4
+2
-2
No files found.
Dockerfile
View file @
d56f7529
FROM
node
RUN
apt update
RUN
apt
install
-y
locales
RUN
echo
'zh_CN.UTF-8 UTF-8'
>
/etc/locale.gen
RUN
locale-gen
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
...
...
@@ -9,4 +14,4 @@ COPY package.json /usr/src/app/
RUN
npm
install
COPY
. /usr/src/app
CMD
[ "npm", "start" ]
\ No newline at end of file
ENTRYPOINT
[ "npm", "start" ]
main.ts
View file @
d56f7529
...
...
@@ -71,8 +71,8 @@ function archive(archive: string, files: string[], directory: string): Promise<v
function
nothing
()
{
}
async
function
main
(
package_id
,
version
)
{
console
.
log
(
`package
${
package_id
}
version
${
version
}
`
);
async
function
main
(
package_id
)
{
console
.
log
(
`package
${
package_id
}
`
);
await
fs
.
mkdirAsync
(
release_path
).
catch
(
nothing
);
await
fs
.
mkdirAsync
(
path
.
join
(
release_path
,
"
downloads
"
)).
catch
(
nothing
);
...
...
@@ -164,8 +164,8 @@ async function main(package_id, version) {
}
if
(
process
.
argv
[
2
]
&&
process
.
argv
[
3
]
)
{
main
(
process
.
argv
[
2
]
,
process
.
argv
[
3
]
)
if
(
process
.
argv
[
2
])
{
main
(
process
.
argv
[
2
])
}
else
{
console
.
log
(
`param: <package>
<version>
`
)
console
.
log
(
`param: <package>`
)
}
template.meta4
View file @
d56f7529
...
...
@@ -3,7 +3,7 @@
<file
name=
"{{name}}"
>
<size>
{{size}}
</size>
<hash
type=
"sha-256"
>
{{hash}}
</hash>
<url
priority=
"1"
>
https://
thief.mycard.moe
/dist/{{hash}}.tar.gz
</url>
<url
priority=
"1"
>
https://
myacg.mycard.moe
/dist/{{hash}}.tar.gz
</url>
<url
priority=
"1"
>
https://
cdn01.moecube.com
/dist/{{hash}}.tar.gz
</url>
<url
priority=
"1"
>
https://
cdn02.moecube.com:444
/dist/{{hash}}.tar.gz
</url>
</file>
</metalink>
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