泛型 C# 版本对比

变更: v1.0.1 → v1.0.2 2026-07-01 16:36 → 2026-07-02 01:10
v1.0.1 v1.0.2
-8 +8
1 {
2 "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3 "meta": {
展开 6 行未改动
10 "description": "一个通用的 C# (dotnet) 模板,用于运行你的 C# 项目。",
11 "features": null,
12 "docker_images": {
13 - "Dotnet_8": "ghcr.io/ptero-eggs/yolks:dotnet_8",
14 - "Dotnet_7": "ghcr.io/ptero-eggs/yolks:dotnet_7",
15 - "Dotnet_6": "ghcr.io/ptero-eggs/yolks:dotnet_6",
16 - "Dotnet_5": "ghcr.io/ptero-eggs/yolks:dotnet_5",
17 - "Dotnet_3.1": "ghcr.io/ptero-eggs/yolks:dotnet_3.1",
18 - "Dotnet_2.1": "ghcr.io/ptero-eggs/yolks:dotnet_2.1"
19 },
20 "file_denylist": [],
21 "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; cd {{PROJECT_DIR}}; dotnet restore; dotnet run --project {{PROJECT_FILE}}",
展开 6 行未改动
28 "scripts": {
29 "installation": {
30 "script": "#!/bin/bash\r\n\r\napt update\r\napt install -y git curl jq file unzip\r\n\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"assuming user knows what they are doing have a good day.\"\r\n exit 0\r\nfi\r\n\r\n## add git ending if it's not on the address\r\nif [[ ${GIT_ADDRESS} != *.git ]]; then\r\n GIT_ADDRESS=${GIT_ADDRESS}.git\r\nfi\r\n\r\nif [ -z \"${USERNAME}\" ] && [ -z \"${ACCESS_TOKEN}\" ]; then\r\n echo -e \"using anon api call\"\r\nelse\r\n GIT_ADDRESS=\"https://${USERNAME}:${ACCESS_TOKEN}@$(echo -e ${GIT_ADDRESS} | cut -d/ -f3-)\"\r\nfi\r\n\r\n## pull git js bot repo\r\nif [ \"$(ls -A /mnt/server)\" ]; then\r\n echo -e \"/mnt/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \".git directory exists\"\r\n if [ -f .git/config ]; then\r\n echo -e \"loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"files found with no git config\"\r\n echo -e \"closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"${GIT_ADDRESS}\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"/mnt/server is empty.\\ncloning files into repo\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"cloning default branch\"\r\n git clone ${GIT_ADDRESS} .\r\n else\r\n echo -e \"cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} ${GIT_ADDRESS} .\r\n fi\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
31 - "container": "ghcr.io/ptero-eggs/installers:debian",
32 "entrypoint": "bash"
33 }
34 },
展开 20 行未改动
55 },
56 {
57 "name": "用户上传的文件",
58 - "description": "如果你让用户上传文件,跳过所有安装内容。\n\n0 = false (default)\n1 = true",
59 "env_variable": "USER_UPLOAD",
60 "default_value": "0",
61 "user_viewable": true,
展开 53 行未改动
115 }
116 ]
117 }
1 {
2 "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3 "meta": {
展开 6 行未改动
10 "description": "一个通用的 C# (dotnet) 模板,用于运行你的 C# 项目。",
11 "features": null,
12 "docker_images": {
13 + "Dotnet_8": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_8",
14 + "Dotnet_7": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_7",
15 + "Dotnet_6": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_6",
16 + "Dotnet_5": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_5",
17 + "Dotnet_3.1": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_3.1",
18 + "Dotnet_2.1": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/yolks:dotnet_2.1"
19 },
20 "file_denylist": [],
21 "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; cd {{PROJECT_DIR}}; dotnet restore; dotnet run --project {{PROJECT_FILE}}",
展开 6 行未改动
28 "scripts": {
29 "installation": {
30 "script": "#!/bin/bash\r\n\r\napt update\r\napt install -y git curl jq file unzip\r\n\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\nif [ \"${USER_UPLOAD}\" == \"true\" ] || [ \"${USER_UPLOAD}\" == \"1\" ]; then\r\n echo -e \"assuming user knows what they are doing have a good day.\"\r\n exit 0\r\nfi\r\n\r\n## add git ending if it's not on the address\r\nif [[ ${GIT_ADDRESS} != *.git ]]; then\r\n GIT_ADDRESS=${GIT_ADDRESS}.git\r\nfi\r\n\r\nif [ -z \"${USERNAME}\" ] && [ -z \"${ACCESS_TOKEN}\" ]; then\r\n echo -e \"using anon api call\"\r\nelse\r\n GIT_ADDRESS=\"https://${USERNAME}:${ACCESS_TOKEN}@$(echo -e ${GIT_ADDRESS} | cut -d/ -f3-)\"\r\nfi\r\n\r\n## pull git js bot repo\r\nif [ \"$(ls -A /mnt/server)\" ]; then\r\n echo -e \"/mnt/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \".git directory exists\"\r\n if [ -f .git/config ]; then\r\n echo -e \"loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"files found with no git config\"\r\n echo -e \"closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"${GIT_ADDRESS}\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"/mnt/server is empty.\\ncloning files into repo\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"cloning default branch\"\r\n git clone ${GIT_ADDRESS} .\r\n else\r\n echo -e \"cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} ${GIT_ADDRESS} .\r\n fi\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
31 + "container": "crpi-61s8ghuciu93bus8.cn-shanghai.personal.cr.aliyuncs.com/pterocn-eggs/installers:debian",
32 "entrypoint": "bash"
33 }
34 },
展开 20 行未改动
55 },
56 {
57 "name": "用户上传的文件",
58 + "description": "如果你让用户上传文件,跳过所有安装内容。\n\n0 = 否(默认)\n1 = 是",
59 "env_variable": "USER_UPLOAD",
60 "default_value": "0",
61 "user_viewable": true,
展开 53 行未改动
115 }
116 ]
117 }

更新说明

v1.0.1

[AI翻译] 名称、描述、说明、JSON描述、变量

v1.0.2

[AI翻译] 变量