-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindows_package.sh
More file actions
171 lines (148 loc) · 7.32 KB
/
Copy pathwindows_package.sh
File metadata and controls
171 lines (148 loc) · 7.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#!/bin/sh
APP_NAME=DataBasin
APP_BUNDLE=$APP_NAME.app
DEST_DIR=/c/Users/$LOGNAME/Desktop
APP_DIR=$DEST_DIR/$APP_BUNDLE
GS_CONF_MASTER=windows-GNUstep.conf
echo Creating Self-contained package for Windows for $APP_NAME
echo Copying $APP_BUNDLE in $DEST_DIR
cp -R $APP_BUNDLE "$DEST_DIR"
echo Copying DLLs from /bin and /mingw/bin
cp $(find /bin -name *.dll) "$APP_DIR"
cp $(find /mingw/bin -name *.dll) "$APP_DIR"
cp $(find /local -name *.dll) "$APP_DIR"
echo Copying the GNUstep Directory into $APP_BUNDLE
mkdir -p "$APP_DIR"/GNUstep
cp -R /GNUstep/* "$APP_DIR"/GNUstep/
echo cleaning up CVS files
find "$APP_DIR" -name .svn -print0 | xargs -0 rm -r
find "$APP_DIR" -name .cvs -print0 | xargs -0 rm -r
find "$APP_DIR" -name .git -print0 | xargs -0 rm -r
echo cleaning up other files
find "$APP_DIR" -name stamp.make -print0 | xargs -0 rm
echo Copying GNUstep.conf file
cp $GS_CONF_MASTER "$APP_DIR"/GNUstep.conf
rm -rf "$APP_DIR"/GNUstep/etc
echo Copying Windows manifest
cp $APP_NAME.exe.manifest $APP_DIR
echo Moving Library DLLs from the GNUstep tree to $APP_BUNDLE
mv "$APP_DIR"/GNUstep/Local/Tools/*.dll "$APP_DIR"/
mv "$APP_DIR"/GNUstep/System/Tools/*.dll "$APP_DIR"/
echo Removing Network folder...
rm -rf "$APP_DIR"/GNUstep/Network
echo Removing Headers
rm -rf "$APP_DIR"/GNUstep/Local/Library/Headers
rm -rf "$APP_DIR"/GNUstep/System/Library/Headers
find "$APP_DIR"/GNUstep -name Headers -print0 | xargs -0 rm -r
echo Removing installed applications...
rm -rf "$APP_DIR"/GNUstep/Local/Applications
rm -rf "$APP_DIR"/GNUstep/System/Applications
echo Removing Fonts
rm -rf "$APP_DIR"/GNUstep/Local/Library/Fonts
rm -rf "$APP_DIR"/GNUstep/System/Library/Fonts
echo Removing Documentation
rm -rf "$APP_DIR"/GNUstep/System/man
rm -rf "$APP_DIR"/GNUstep/Local/Library/Documentation
rm -rf "$APP_DIR"/GNUstep/System/Library/Documentation
echo Removing Makefiles
rm -rf "$APP_DIR"/GNUstep/System/Library/Makefiles
# Check that your app doesn't use one of these!
echo Removing unused frameworks and its libraries
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/RSSKit.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Libraries/libRSSKit*
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/SimpleWebKit.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Libraries/libSimpleWebKit*
rm -rf "$APP_DIR"/SimpleWebKit*
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/SimpleWebKit.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Cynthiune
rm -rf "$APP_DIR"/GNUstep/Local/Library/ApplicationSupport/GSTest
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/libgmodel.bundle
echo Removing known Application and Developer tool traces
echo Removing Addresses
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/AddressView.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/AddressView.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/Addresses.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/Addresses.framework
echo Removing Preferences resources
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/PreferencePanes.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/PreferencePanes.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/*.prefPane
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/*.prefPane
rm "$APP_DIR"/GNUstep/System/Tools/SystemPreferences
rm -f "$APP_DIR"/GNUstep/System/Library/Libraries/libPreferencePanes.*
echo Removing ProjectCenter resources
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/ProjectCenter.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/ProjectCenter.framework
rm -f "$APP_DIR"/GNUstep/Local/Library/Libraries/libProjectCenter*
rm -f "$APP_DIR"/GNUstep/System/Library/Libraries/libProjectCenter*
rm "$APP_DIR"/GNUstep/System/Tools/ProjectCenter
echo Removing Gorm resources
rm -f "$APP_DIR"/GNUstep/Local/Library/Libraries/libGorm*
rm -f "$APP_DIR"/GNUstep/System/Library/Libraries/libGorm*
rm "$APP_DIR"/GNUstep/System/Tools/Gorm
echo Removing GWorkspace resources
rm -f "$APP_DIR"/GNUstep/Local/Tools/fswatcher.exe
rm -f "$APP_DIR"/GNUstep/System/Tools/fswatcher.exe
rm -f "$APP_DIR"/GNUstep/Local/Tools/ddbd.exe
rm -f "$APP_DIR"/GNUstep/System/Tools/ddbd.exe
rm -rf "$APP_DIR"/GNUstep/Local/Library/Services/thumbnailer.service
rm -rf "$APP_DIR"/GNUstep/System/Library/Services/thumbnailer.service
rm -f "$APP_DIR"/GNUstep/Local/Library/Libraries/libFSNode*
rm -f "$APP_DIR"/GNUstep/System/Library/Libraries/libFSNode*
rm -f "$APP_DIR"/GNUstep/Local/Library/Libraries/libInspector*
rm -rf "$APP_DIR"/GNUstep/System/Library/Libraries/libInspector*
rm -rf "$APP_DIR"/GNUstep/Local/Library/Libraries/libOperation*
rm -rf "$APP_DIR"/GNUstep/System/Library/Libraries/libOperation*
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/ImageThumbnailer.thumb
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/ImageThumbnailer.thumb
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/ImageViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/ImageViewer.inspector
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/FModule*
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/FModule*
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/NSTIFFViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/NSTIFFViewer.inspector
rm -rf "$APP_DIR"/GNUstep/Local/Library/Bundles/NSRTFViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/NSRTFViewer.inspector
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/Operation.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/Operation.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/FSNode.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/FSNode.framework
rm -rf "$APP_DIR"/GNUstep/Local/Library/Frameworks/Inspector.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Frameworks/Inspector.framework
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/AppViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/FolderViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/IBViewViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/SoundViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/RtfViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/NSColorViewer.inspector
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/Role.extinfo
rm -rf "$APP_DIR"/GNUstep/System/Library/Bundles/MDModuleAnnotations.mdm
rm "$APP_DIR"/GNUstep/Local/Tools/Recycler
rm "$APP_DIR"/GNUstep/System/Tools/Recycler
rm "$APP_DIR"/GNUstep/System/Tools/wopen.exe
rm "$APP_DIR"/GNUstep/System/Tools/searchtool.exe
rm "$APP_DIR"/GNUstep/System/Tools/GWorkspace
rm -f "$APP_DIR"/GNUstep/System/Library/Libraries/libDBKit.*
echo Removing developer libraries and tools
rm "$APP_DIR"/libsvn*.dll
rm -rf "$APP_DIR"/GNUstep/System/share
rm "$APP_DIR"/GNUstep/System/Tools/debugapp
rm "$APP_DIR"/GNUstep/System/Tools/autogsdoc.exe
rm "$APP_DIR"/GNUstep/System/Tools/make_strings.exe
rm "$APP_DIR"/GNUstep/System/Tools/plparse.exe
rm "$APP_DIR"/GNUstep/System/Tools/sfparse.exe
echo Removing specific libraries
rm "$APP_DIR"/Gorm*.dll
rm "$APP_DIR"/Addresses*.dll
rm "$APP_DIR"/AddressView*.dll
rm "$APP_DIR"/Operation*.dll
rm "$APP_DIR"/ProjectCenter*.dll
rm "$APP_DIR"/PreferencePanes*.dll
rm "$APP_DIR"/RSSKit*.dll
rm "$APP_DIR"/Cynthiune*.dll
rm "$APP_DIR"/FSNode*.dll
rm "$APP_DIR"/Inspector*.dll
rm "$APP_DIR"/DBKit*.dll
rm "$APP_DIR"/GNUstep/Local/Tools/AClock
rm "$APP_DIR"/GNUstep/Local/Tools/AddressManager
rm "$APP_DIR"/GNUstep/Local/Tools/GFractal