Files
django-vue3-admin/backend/dvadmin3_build/builddmg.sh
liqiang 2800d1ee14 1
2025-09-19 10:56:00 +08:00

22 lines
552 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# 获取传入的全局参数
dist_folder=$1
icon_path=$2
# 清空dmg文件夹。
rm -rf "$dist_folder/DVAServer"
rm -rf "$dist_folder/main"
# 如果DMG已经存在则删除它。
test -f "$dist_folder/DVAServer.dmg" && rm "$dist_folder/DVAServer.dmg"
create-dmg \
--volname "DVAServer" \
--volicon $icon_path \
--window-pos 200 120 \
--window-size 600 300 \
--icon-size 100 \
--icon "DVAServer.app" 175 120 \
--hide-extension "DVAServer.app" \
--app-drop-link 425 120 \
"$dist_folder/DVAServer.dmg" \
"$dist_folder/"