Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-11-22 09:20:47 +00:00
parent c35dd15f93
commit e89e1fcc05
32 changed files with 4 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
# MacOS 存储目录 [必填]
MACOS_STORAGE_ROOT_PATH=/home/macos
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8006
# Mac 远程桌面 端口 [必填]
PANEL_APP_PORT_REMOTE=5900
# MacOS 版本 [必填]
VERSION=15
# 内存大小 [必填]
RAM_SIZE=8G
# 硬盘大小 [必填]
DISK_SIZE=64G
# CPU 核心数 [必填]
CPU_CORES=4
+64
View File
@@ -0,0 +1,64 @@
additionalProperties:
formFields:
- default: "/home/macos"
edit: true
envKey: MACOS_STORAGE_ROOT_PATH
labelZh: MacOS 存储目录
labelEn: MacOS Storage Path
required: true
type: text
- default: 8006
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 5900
edit: true
envKey: PANEL_APP_PORT_REMOTE
labelZh: Mac 远程桌面 端口
labelEn: Mac Remote Desktop Port
required: true
rule: paramPort
type: number
- default: "15"
edit: true
envKey: VERSION
labelZh: MacOS 版本
labelEn: MacOS Version
required: true
type: select
values:
- label: macOS 15 (Sequoia)
value: "15"
- label: macOS 14 (Sonoma)
value: "14"
- label: macOS 13 (Ventura)
value: "13"
- label: macOS 12 (Monterey)
value: "12"
- label: macOS 11 (Big Sur)
value: "11"
- default: "8G"
edit: true
envKey: RAM_SIZE
labelZh: 内存大小
labelEn: RAM Size
required: true
type: text
- default: "64G"
edit: true
envKey: DISK_SIZE
labelZh: 硬盘大小
labelEn: Disk Size
required: true
type: text
- default: 4
edit: true
envKey: CPU_CORES
labelZh: CPU 核心数
labelEn: CPU Cores
required: true
type: number
+29
View File
@@ -0,0 +1,29 @@
networks:
1panel-network:
external: true
services:
windows:
cap_add:
- NET_ADMIN
container_name: macos
devices:
- /dev/kvm:/dev/kvm
- /dev/dri:/dev/dri
env_file:
- ./envs/global.env
- .env
environment:
- VERSION=${VERSION}
image: dockurr/macos:2.29
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8006
- ${PANEL_APP_PORT_REMOTE}:5900/tcp
- ${PANEL_APP_PORT_REMOTE}:5900/udp
restart: always
stop_grace_period: 2m
volumes:
- ${MACOS_STORAGE_ROOT_PATH}/storage:/storage
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi