feat: release scripts

pull/322/head
caorushizi 4 months ago
parent 18afb893a6
commit e5c4f00649

@ -49,6 +49,9 @@ pnpm release
# docker 启动
docker run -d --name mediago -p 8899:8899 -v /root/mediago:/root/mediago registry.cn-beijing.aliyuncs.com/caorushizi/mediago
# 构建 docker 镜像
docker buildx build -t caorushizi/mediago:latest .
```
## Releases

@ -16,7 +16,7 @@
"build:backend": "pnpm -F backend run build",
"build:renderer": "pnpm -F renderer run build",
"build:mobile": "pnpm -F mobile run build",
"build:docker": "tsx scripts/web.ts && docker buildx build -t caorushizi/mediago:latest .",
"build:web-release": "tsx scripts/web.ts",
"rebuild:web": "pnpm -F backend rebuild",
"rebuild:electron": "pnpm -F main run rebuild",
"beta": "pnpm run build && pnpm -F mediago run pack",

@ -19,7 +19,11 @@ async function buildClean() {
}
async function copyBin() {
const source = mainResolve("../main/bin", isDev ? process.platform : "linux");
const source = mainResolve(
"../main/bin",
isDev ? process.platform : "linux",
process.arch,
);
const target = mainResolve("dist/server/bin");
fs.cpSync(source, target, {
recursive: true,

@ -6,7 +6,8 @@ export function getSocket() {
return _instance;
}
_instance = io("http://localhost:8899", {
_instance = io({
host: "http://localhost:8899",
extraHeaders: {
"Access-Control-Request-Private-Network": "true",
},

Loading…
Cancel
Save