瀏覽代碼

feat: Use the engine variable (#1458)

Kroese 4 周之前
父節點
當前提交
26e4ab5fb2
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      src/define.sh
  2. 1 0
      src/install.sh
  3. 1 1
      src/samba.sh

+ 1 - 1
src/define.sh

@@ -1620,7 +1620,7 @@ prepareInstall() {
           echo "[UserData]"
           echo "    FullName=\"$username\""
           echo "    ComputerName=\"*\""
-          echo "    OrgName=\"Windows for Docker\""
+          echo "    OrgName=\"$APP for $ENGINE\""
           echo "    $KEY"
           echo ""
           echo "[Identification]"

+ 1 - 0
src/install.sh

@@ -759,6 +759,7 @@ updateXML() {
   [ -z "$HEIGHT" ] && HEIGHT="720"
   [ -z "$WIDTH" ] && WIDTH="1280"
 
+  sed -i "s/>Windows for Docker</>$APP for $ENGINE</g" "$asset"
   sed -i "s/<VerticalResolution>1080<\/VerticalResolution>/<VerticalResolution>$HEIGHT<\/VerticalResolution>/g" "$asset"
   sed -i "s/<HorizontalResolution>1920<\/HorizontalResolution>/<HorizontalResolution>$WIDTH<\/HorizontalResolution>/g" "$asset"
 

+ 1 - 1
src/samba.sh

@@ -53,7 +53,7 @@ addShare() {
   if [[ "$dir" == "$tmp" ]]; then
 
     {      echo "--------------------------------------------------------"
-            echo " $APP for Docker v$(</run/version)..."
+            echo " $APP for $ENGINE v$(</run/version)..."
             echo " For support visit $SUPPORT"
             echo "--------------------------------------------------------"
             echo ""