Commit d56f7529 authored by nanahira's avatar nanahira

recent changes

parent f9cad75f
Pipeline #4595 failed with stages
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" ]
......@@ -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>`)
}
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment