Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/deploy-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// 2. upload to s3

import { mimeMap } from '@/s3/const';
import { pkg } from '@/utils/zip';
import { UploadToolsS3Path } from '@tool/constants';
import { $, S3Client } from 'bun';
import { glob } from 'fs/promises';
Expand Down Expand Up @@ -113,6 +114,11 @@ async function main() {
}

console.log('✅ Assets uploaded successfully');

await pkg('./dist/pkgs', './dist/pkgs.pkg');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥前后名字不一样的,

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为这个 pkg 的函数就是打包到 pkg.. 但是实际上就是个后缀名的问题,,上传到 s3 和这个后缀名没关系,可以直接指定为 pkgs.zip

await client.write(`/pkgs.zip`, Bun.file('./dist/pkgs.pkg'));

console.log('✅ pkgs.zip uploaded successfully');
}

if (import.meta.main) {
Expand Down