mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2026-05-14 02:00:18 +08:00
2.3
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user