This commit is contained in:
2023-04-21 17:03:14 +08:00
parent 93364b1057
commit 34698b710e
2 changed files with 13 additions and 10 deletions

View File

@@ -149,7 +149,17 @@ CallProcess()
# Disable winemenubuilder # Disable winemenubuilder
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe /f env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe /f
# Link to Document # Link to Document
if [ -f "$WINEPREFIX/drive_c/users/$(logname)/My Documents" ]; then
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' /t REG_EXPAND_SZ /v Personal /d "%USERPROFILE%\My Documents" /f env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' /t REG_EXPAND_SZ /v Personal /d "%USERPROFILE%\My Documents" /f
else
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' /t REG_EXPAND_SZ /v Personal /d "%USERPROFILE%\Documents" /f
fi
debug_log_to_file "Starting process $* ..." debug_log_to_file "Starting process $* ..."
############# WARNING: Here is the modified content: Now will run set-dwine-scale.sh ############# WARNING: Here is the modified content: Now will run set-dwine-scale.sh

View File

@@ -34,15 +34,8 @@ if [ "$verbose" = true ]; then
echo "正在从 $source_dir 复制文件到 $destination_dir" echo "正在从 $source_dir 复制文件到 $destination_dir"
fi fi
# 使用mv命令覆盖同名文件 # 使用cp命令覆盖同名文件
for file in "$source_dir"/*; do cp -rf "$source_dir"/* "$destination_dir"
if [ -f "$file" ]; then
cp -f "$file" "$destination_dir"
if [ "$verbose" = true ]; then
echo "已复制 $file 到 $destination_dir"
fi
fi
done
echo "文件复制完成!" echo "文件复制完成!"
exit 0 exit 0