@@ -19,8 +19,8 @@ if [ "$remove_sparkle" == "1" ]; then
19
19
# Using a clean up script is easier because there isn't an easy way to tell
20
20
# Xcode not to link/copy it unless we make another target, or dynamically
21
21
# patch the project file.
22
- set -x
23
- rm -rf " $sparkle_path "
22
+ ( set -x
23
+ rm -rf " $sparkle_path " )
24
24
fi
25
25
else
26
26
sparkle_xpcservices_symlink=" $macvim_path /Contents/Frameworks/Sparkle.framework/XPCServices"
30
30
# This only happens when building using Sparkle 2. It contains XPC Services
31
31
# files which are only necessary for sandboxed apps, and not recommended
32
32
# otherwise. See https://sparkle-project.org/documentation/sandboxing/.
33
- set -x
33
+ ( set -x
34
34
rm -rf " $sparkle_xpcservices "
35
- rm " $sparkle_xpcservices_symlink "
35
+ rm " $sparkle_xpcservices_symlink " )
36
36
fi
37
37
fi
38
+
39
+ # This is a temporary measure to remove unnecessary files in the runtime
40
+ # folder. Ideally we should move to use Vim's built-in `make install` mechanism
41
+ # instead of copying all the files from the runtime over to the app blindly.
42
+ # See https://github.com/macvim-dev/macvim/issues/1417
43
+ set -x
44
+ rm -rf $macvim_path /Contents/Resources/vim/runtime/indent/testdir
45
+ rm -rf $macvim_path /Contents/Resources/vim/runtime/syntax/testdir
46
+ rm -f $macvim_path /Contents/Resources/vim/runtime/doc/Makefile
47
+ rm -f $macvim_path /Contents/Resources/vim/runtime/indent/Makefile
48
+ rm -f $macvim_path /Contents/Resources/vim/runtime/lang/Makefile
49
+ rm -f $macvim_path /Contents/Resources/vim/runtime/syntax/Makefile
50
+ rm -f $macvim_path /Contents/Resources/vim/runtime/tutor/Makefile
0 commit comments