filedialog 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/gempush.yml +31 -0
  3. data/.gitignore +13 -0
  4. data/.gitmodules +3 -0
  5. data/.rubocop.yml +19 -0
  6. data/Gemfile +10 -0
  7. data/Gemfile.lock +30 -0
  8. data/LICENSE +674 -0
  9. data/README.md +22 -0
  10. data/Rakefile +35 -0
  11. data/bin/console +25 -0
  12. data/deps/filedialogbuilddeps.rb +49 -0
  13. data/deps/nativefiledialog/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  14. data/deps/nativefiledialog/.gitignore +181 -0
  15. data/deps/nativefiledialog/LICENSE +16 -0
  16. data/deps/nativefiledialog/README.md +180 -0
  17. data/deps/nativefiledialog/build/dont_run_premake.txt +1 -0
  18. data/deps/nativefiledialog/build/gmake_linux/Makefile +101 -0
  19. data/deps/nativefiledialog/build/gmake_linux/nfd.make +192 -0
  20. data/deps/nativefiledialog/build/gmake_linux/test_opendialog.make +188 -0
  21. data/deps/nativefiledialog/build/gmake_linux/test_opendialogmultiple.make +188 -0
  22. data/deps/nativefiledialog/build/gmake_linux/test_pickfolder.make +188 -0
  23. data/deps/nativefiledialog/build/gmake_linux/test_savedialog.make +188 -0
  24. data/deps/nativefiledialog/build/gmake_linux_zenity/Makefile +101 -0
  25. data/deps/nativefiledialog/build/gmake_linux_zenity/nfd.make +192 -0
  26. data/deps/nativefiledialog/build/gmake_linux_zenity/test_opendialog.make +188 -0
  27. data/deps/nativefiledialog/build/gmake_linux_zenity/test_opendialogmultiple.make +188 -0
  28. data/deps/nativefiledialog/build/gmake_linux_zenity/test_pickfolder.make +188 -0
  29. data/deps/nativefiledialog/build/gmake_linux_zenity/test_savedialog.make +188 -0
  30. data/deps/nativefiledialog/build/gmake_macosx/Makefile +85 -0
  31. data/deps/nativefiledialog/build/gmake_macosx/nfd.make +154 -0
  32. data/deps/nativefiledialog/build/gmake_macosx/test_opendialog.make +150 -0
  33. data/deps/nativefiledialog/build/gmake_macosx/test_opendialogmultiple.make +150 -0
  34. data/deps/nativefiledialog/build/gmake_macosx/test_pickfolder.make +150 -0
  35. data/deps/nativefiledialog/build/gmake_macosx/test_savedialog.make +150 -0
  36. data/deps/nativefiledialog/build/gmake_windows/Makefile +101 -0
  37. data/deps/nativefiledialog/build/gmake_windows/nfd.make +192 -0
  38. data/deps/nativefiledialog/build/gmake_windows/test_opendialog.make +188 -0
  39. data/deps/nativefiledialog/build/gmake_windows/test_opendialogmultiple.make +188 -0
  40. data/deps/nativefiledialog/build/gmake_windows/test_pickfolder.make +188 -0
  41. data/deps/nativefiledialog/build/gmake_windows/test_savedialog.make +188 -0
  42. data/deps/nativefiledialog/build/premake5.lua +265 -0
  43. data/deps/nativefiledialog/build/vs2010/NativeFileDialog.sln +78 -0
  44. data/deps/nativefiledialog/build/vs2010/nfd.vcxproj +168 -0
  45. data/deps/nativefiledialog/build/vs2010/nfd.vcxproj.filters +20 -0
  46. data/deps/nativefiledialog/build/vs2010/test_opendialog.vcxproj +182 -0
  47. data/deps/nativefiledialog/build/vs2010/test_opendialogmultiple.vcxproj +182 -0
  48. data/deps/nativefiledialog/build/vs2010/test_pickfolder.vcxproj +182 -0
  49. data/deps/nativefiledialog/build/vs2010/test_savedialog.vcxproj +182 -0
  50. data/deps/nativefiledialog/build/xcode4/NativeFileDialog.xcworkspace/contents.xcworkspacedata +19 -0
  51. data/deps/nativefiledialog/build/xcode4/nfd.xcodeproj/project.pbxproj +228 -0
  52. data/deps/nativefiledialog/build/xcode4/test_opendialog.xcodeproj/project.pbxproj +294 -0
  53. data/deps/nativefiledialog/build/xcode4/test_opendialogmultiple.xcodeproj/project.pbxproj +294 -0
  54. data/deps/nativefiledialog/build/xcode4/test_pickfolder.xcodeproj/project.pbxproj +294 -0
  55. data/deps/nativefiledialog/build/xcode4/test_savedialog.xcodeproj/project.pbxproj +294 -0
  56. data/deps/nativefiledialog/docs/build.md +39 -0
  57. data/deps/nativefiledialog/docs/contributing.md +25 -0
  58. data/deps/nativefiledialog/screens/open_cocoa.png +0 -0
  59. data/deps/nativefiledialog/screens/open_gtk3.png +0 -0
  60. data/deps/nativefiledialog/screens/open_win.png +0 -0
  61. data/deps/nativefiledialog/src/common.h +21 -0
  62. data/deps/nativefiledialog/src/include/nfd.h +74 -0
  63. data/deps/nativefiledialog/src/nfd_cocoa.m +286 -0
  64. data/deps/nativefiledialog/src/nfd_common.c +142 -0
  65. data/deps/nativefiledialog/src/nfd_common.h +39 -0
  66. data/deps/nativefiledialog/src/nfd_gtk.c +379 -0
  67. data/deps/nativefiledialog/src/nfd_win.cpp +762 -0
  68. data/deps/nativefiledialog/src/nfd_zenity.c +307 -0
  69. data/deps/nativefiledialog/src/simple_exec.h +218 -0
  70. data/deps/nativefiledialog/test/test_opendialog.c +29 -0
  71. data/deps/nativefiledialog/test/test_opendialogmultiple.c +32 -0
  72. data/deps/nativefiledialog/test/test_pickfolder.c +29 -0
  73. data/deps/nativefiledialog/test/test_savedialog.c +28 -0
  74. data/ext/filedialog/extconf.rb +58 -0
  75. data/ext/filedialog/filedialog.c +118 -0
  76. data/filedialog.gemspec +48 -0
  77. data/lib/filedialog.rb +50 -0
  78. data/lib/filedialog/version.rb +5 -0
  79. metadata +137 -0
@@ -0,0 +1,188 @@
1
+ # GNU Make project makefile autogenerated by Premake
2
+
3
+ ifndef config
4
+ config=release_x64
5
+ endif
6
+
7
+ ifndef verbose
8
+ SILENT = @
9
+ endif
10
+
11
+ .PHONY: clean prebuild prelink
12
+
13
+ ifeq ($(config),release_x64)
14
+ RESCOMP = windres
15
+ TARGETDIR = ../bin
16
+ TARGET = $(TARGETDIR)/test_savedialog.exe
17
+ OBJDIR = ../obj/x64/Release/test_savedialog
18
+ DEFINES += -DNDEBUG
19
+ INCLUDES += -I../../src/include
20
+ FORCE_INCLUDE +=
21
+ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
22
+ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
23
+ ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
24
+ ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
25
+ LIBS += ../lib/Release/x64/nfd.lib -lole32 -luuid
26
+ LDDEPS += ../lib/Release/x64/nfd.lib
27
+ ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x64 -L/usr/lib64 -m64 -s
28
+ LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
29
+ define PREBUILDCMDS
30
+ endef
31
+ define PRELINKCMDS
32
+ endef
33
+ define POSTBUILDCMDS
34
+ endef
35
+ all: prebuild prelink $(TARGET)
36
+ @:
37
+
38
+ endif
39
+
40
+ ifeq ($(config),release_x86)
41
+ RESCOMP = windres
42
+ TARGETDIR = ../bin
43
+ TARGET = $(TARGETDIR)/test_savedialog.exe
44
+ OBJDIR = ../obj/x86/Release/test_savedialog
45
+ DEFINES += -DNDEBUG
46
+ INCLUDES += -I../../src/include
47
+ FORCE_INCLUDE +=
48
+ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
49
+ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
50
+ ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
51
+ ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
52
+ LIBS += ../lib/Release/x86/nfd.lib -lole32 -luuid
53
+ LDDEPS += ../lib/Release/x86/nfd.lib
54
+ ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x86 -L/usr/lib32 -m32 -s
55
+ LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
56
+ define PREBUILDCMDS
57
+ endef
58
+ define PRELINKCMDS
59
+ endef
60
+ define POSTBUILDCMDS
61
+ endef
62
+ all: prebuild prelink $(TARGET)
63
+ @:
64
+
65
+ endif
66
+
67
+ ifeq ($(config),debug_x64)
68
+ RESCOMP = windres
69
+ TARGETDIR = ../bin
70
+ TARGET = $(TARGETDIR)/test_savedialog_d.exe
71
+ OBJDIR = ../obj/x64/Debug/test_savedialog
72
+ DEFINES += -DDEBUG
73
+ INCLUDES += -I../../src/include
74
+ FORCE_INCLUDE +=
75
+ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
76
+ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
77
+ ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
78
+ ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
79
+ LIBS += -lnfd_d -lole32 -luuid
80
+ LDDEPS +=
81
+ ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x64 -L/usr/lib64 -m64
82
+ LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
83
+ define PREBUILDCMDS
84
+ endef
85
+ define PRELINKCMDS
86
+ endef
87
+ define POSTBUILDCMDS
88
+ endef
89
+ all: prebuild prelink $(TARGET)
90
+ @:
91
+
92
+ endif
93
+
94
+ ifeq ($(config),debug_x86)
95
+ RESCOMP = windres
96
+ TARGETDIR = ../bin
97
+ TARGET = $(TARGETDIR)/test_savedialog_d.exe
98
+ OBJDIR = ../obj/x86/Debug/test_savedialog
99
+ DEFINES += -DDEBUG
100
+ INCLUDES += -I../../src/include
101
+ FORCE_INCLUDE +=
102
+ ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
103
+ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
104
+ ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
105
+ ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
106
+ LIBS += -lnfd_d -lole32 -luuid
107
+ LDDEPS +=
108
+ ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x86 -L/usr/lib32 -m32
109
+ LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
110
+ define PREBUILDCMDS
111
+ endef
112
+ define PRELINKCMDS
113
+ endef
114
+ define POSTBUILDCMDS
115
+ endef
116
+ all: prebuild prelink $(TARGET)
117
+ @:
118
+
119
+ endif
120
+
121
+ OBJECTS := \
122
+ $(OBJDIR)/test_savedialog.o \
123
+
124
+ RESOURCES := \
125
+
126
+ CUSTOMFILES := \
127
+
128
+ SHELLTYPE := posix
129
+ ifeq (.exe,$(findstring .exe,$(ComSpec)))
130
+ SHELLTYPE := msdos
131
+ endif
132
+
133
+ $(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
134
+ @echo Linking test_savedialog
135
+ $(SILENT) $(LINKCMD)
136
+ $(POSTBUILDCMDS)
137
+
138
+ $(CUSTOMFILES): | $(OBJDIR)
139
+
140
+ $(TARGETDIR):
141
+ @echo Creating $(TARGETDIR)
142
+ ifeq (posix,$(SHELLTYPE))
143
+ $(SILENT) mkdir -p $(TARGETDIR)
144
+ else
145
+ $(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
146
+ endif
147
+
148
+ $(OBJDIR):
149
+ @echo Creating $(OBJDIR)
150
+ ifeq (posix,$(SHELLTYPE))
151
+ $(SILENT) mkdir -p $(OBJDIR)
152
+ else
153
+ $(SILENT) mkdir $(subst /,\\,$(OBJDIR))
154
+ endif
155
+
156
+ clean:
157
+ @echo Cleaning test_savedialog
158
+ ifeq (posix,$(SHELLTYPE))
159
+ $(SILENT) rm -f $(TARGET)
160
+ $(SILENT) rm -rf $(OBJDIR)
161
+ else
162
+ $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
163
+ $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
164
+ endif
165
+
166
+ prebuild:
167
+ $(PREBUILDCMDS)
168
+
169
+ prelink:
170
+ $(PRELINKCMDS)
171
+
172
+ ifneq (,$(PCH))
173
+ $(OBJECTS): $(GCH) $(PCH) | $(OBJDIR)
174
+ $(GCH): $(PCH) | $(OBJDIR)
175
+ @echo $(notdir $<)
176
+ $(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
177
+ else
178
+ $(OBJECTS): | $(OBJDIR)
179
+ endif
180
+
181
+ $(OBJDIR)/test_savedialog.o: ../../test/test_savedialog.c
182
+ @echo $(notdir $<)
183
+ $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
184
+
185
+ -include $(OBJECTS:%.o=%.d)
186
+ ifneq (,$(PCH))
187
+ -include $(OBJDIR)/$(notdir $(PCH)).d
188
+ endif
@@ -0,0 +1,265 @@
1
+ -- Native file dialog premake5 script
2
+ --
3
+ -- This can be ran directly, but commonly, it is only run
4
+ -- by package maintainers.
5
+ --
6
+ -- IMPORTANT NOTE: premake5 alpha 9 does not handle this script
7
+ -- properly. Build premake5 from Github master, or, presumably,
8
+ -- use alpha 10 in the future.
9
+
10
+
11
+ newoption {
12
+ trigger = "linux_backend",
13
+ value = "B",
14
+ description = "Choose a dialog backend for linux",
15
+ allowed = {
16
+ { "gtk3", "GTK 3 - link to gtk3 directly" },
17
+ { "zenity", "Zenity - generate dialogs on the end users machine with zenity" }
18
+ }
19
+ }
20
+
21
+ if not _OPTIONS["linux_backend"] then
22
+ _OPTIONS["linux_backend"] = "gtk3"
23
+ end
24
+
25
+ workspace "NativeFileDialog"
26
+ -- these dir specifications assume the generated files have been moved
27
+ -- into a subdirectory. ex: $root/build/makefile
28
+ local root_dir = path.join(path.getdirectory(_SCRIPT),"../../")
29
+ local build_dir = path.join(root_dir,"build/")
30
+ configurations { "Release", "Debug" }
31
+
32
+ -- Apple stopped distributing an x86 toolchain. Xcode 11 now fails to build with an
33
+ -- error if the invalid architecture is present.
34
+ --
35
+ -- Add it back in here to build for legacy systems.
36
+ filter "system:macosx"
37
+ platforms {"x64"}
38
+ filter "system:windows or system:linux"
39
+ platforms {"x64", "x86"}
40
+
41
+
42
+ objdir(path.join(build_dir, "obj/"))
43
+
44
+ -- architecture filters
45
+ filter "configurations:x86"
46
+ architecture "x86"
47
+
48
+ filter "configurations:x64"
49
+ architecture "x86_64"
50
+
51
+ -- debug/release filters
52
+ filter "configurations:Debug"
53
+ defines {"DEBUG"}
54
+ symbols "On"
55
+ targetsuffix "_d"
56
+
57
+ filter "configurations:Release"
58
+ defines {"NDEBUG"}
59
+ optimize "On"
60
+
61
+ project "nfd"
62
+ kind "StaticLib"
63
+
64
+ -- common files
65
+ files {root_dir.."src/*.h",
66
+ root_dir.."src/include/*.h",
67
+ root_dir.."src/nfd_common.c",
68
+ }
69
+
70
+ includedirs {root_dir.."src/include/"}
71
+ targetdir(build_dir.."/lib/%{cfg.buildcfg}/%{cfg.platform}")
72
+
73
+ warnings "extra"
74
+
75
+ -- system build filters
76
+ filter "system:windows"
77
+ language "C++"
78
+ files {root_dir.."src/nfd_win.cpp"}
79
+
80
+ filter {"action:gmake or action:xcode4"}
81
+ buildoptions {"-fno-exceptions"}
82
+
83
+ filter "system:macosx"
84
+ language "C"
85
+ files {root_dir.."src/nfd_cocoa.m"}
86
+
87
+
88
+
89
+ filter {"system:linux", "options:linux_backend=gtk3"}
90
+ language "C"
91
+ files {root_dir.."src/nfd_gtk.c"}
92
+ buildoptions {"`pkg-config --cflags gtk+-3.0`"}
93
+ filter {"system:linux", "options:linux_backend=zenity"}
94
+ language "C"
95
+ files {root_dir.."src/nfd_zenity.c"}
96
+
97
+
98
+ -- visual studio filters
99
+ filter "action:vs*"
100
+ defines { "_CRT_SECURE_NO_WARNINGS" }
101
+
102
+ local make_test = function(name)
103
+ project(name)
104
+ kind "ConsoleApp"
105
+ language "C"
106
+ dependson {"nfd"}
107
+ targetdir(build_dir.."/bin")
108
+ files {root_dir.."test/"..name..".c"}
109
+ includedirs {root_dir.."src/include/"}
110
+
111
+
112
+ filter {"configurations:Debug", "architecture:x86_64"}
113
+ links {"nfd_d"}
114
+ libdirs {build_dir.."/lib/Debug/x64"}
115
+
116
+ filter {"configurations:Debug", "architecture:x86"}
117
+ links {"nfd_d"}
118
+ libdirs {build_dir.."/lib/Debug/x86"}
119
+
120
+ filter {"configurations:Release", "architecture:x86_64"}
121
+ links {"nfd"}
122
+ libdirs {build_dir.."/lib/Release/x64"}
123
+
124
+ filter {"configurations:Release", "architecture:x86"}
125
+ links {"nfd"}
126
+ libdirs {build_dir.."/lib/Release/x86"}
127
+
128
+ filter {"configurations:Debug"}
129
+ targetsuffix "_d"
130
+
131
+ filter {"configurations:Release", "system:linux", "options:linux_backend=gtk3"}
132
+ linkoptions {"-lnfd `pkg-config --libs gtk+-3.0`"}
133
+ filter {"configurations:Release", "system:linux", "options:linux_backend=zenity"}
134
+ linkoptions {"-lnfd"}
135
+
136
+ filter {"system:macosx"}
137
+ links {"Foundation.framework", "AppKit.framework"}
138
+
139
+ filter {"configurations:Debug", "system:linux", "options:linux_backend=gtk3"}
140
+ linkoptions {"-lnfd_d `pkg-config --libs gtk+-3.0`"}
141
+ filter {"configurations:Debug", "system:linux", "options:linux_backend=zenity"}
142
+ linkoptions {"-lnfd_d"}
143
+
144
+
145
+
146
+ filter {"action:gmake", "system:windows"}
147
+ links {"ole32", "uuid"}
148
+
149
+ end
150
+
151
+ make_test("test_pickfolder")
152
+ make_test("test_opendialog")
153
+ make_test("test_opendialogmultiple")
154
+ make_test("test_savedialog")
155
+
156
+ newaction
157
+ {
158
+ trigger = "dist",
159
+ description = "Create distributable premake dirs (maintainer only)",
160
+ execute = function()
161
+
162
+
163
+ local premake_do_action = function(action,os_str,special,args)
164
+ local premake_dir
165
+ if special then
166
+ if args['linux_backend'] ~= nil then
167
+ premake_dir = "./"..action.."_"..os_str..'_zenity'
168
+ else
169
+ premake_dir = "./"..action.."_"..os_str
170
+ end
171
+ else
172
+ premake_dir = "./"..action
173
+ end
174
+ local premake_path = premake_dir.."/premake5.lua"
175
+
176
+ -- create an args str to pass along to premake
177
+ arg_str = ''
178
+ for arg, val in pairs(args) do
179
+ arg_str = ' --'..arg..'='..val
180
+ end
181
+
182
+ os.execute("mkdir "..premake_dir)
183
+ os.execute("cp premake5.lua "..premake_dir)
184
+ os.execute("premake5 --os=" ..os_str..
185
+ " --file="..premake_path..
186
+ arg_str..
187
+ " "..action)
188
+ os.execute("rm "..premake_path)
189
+ end
190
+
191
+ premake_do_action("vs2010", "windows", false,{})
192
+ premake_do_action("xcode4", "macosx", false,{})
193
+ premake_do_action("gmake", "linux", true,{})
194
+ premake_do_action("gmake", "linux", true,{linux_backend='zenity'})
195
+ premake_do_action("gmake", "macosx", true,{})
196
+ premake_do_action("gmake", "windows", true,{})
197
+ end
198
+ }
199
+
200
+ newaction
201
+ {
202
+ trigger = "clean",
203
+ description = "Clean all build files and output",
204
+ execute = function ()
205
+
206
+ files_to_delete =
207
+ {
208
+ "Makefile",
209
+ "*.make",
210
+ "*.txt",
211
+ "*.7z",
212
+ "*.zip",
213
+ "*.tar.gz",
214
+ "*.db",
215
+ "*.opendb",
216
+ "*.vcproj",
217
+ "*.vcxproj",
218
+ "*.vcxproj.user",
219
+ "*.vcxproj.filters",
220
+ "*.sln",
221
+ "*~*"
222
+ }
223
+
224
+ directories_to_delete =
225
+ {
226
+ "obj",
227
+ "ipch",
228
+ "bin",
229
+ ".vs",
230
+ "Debug",
231
+ "Release",
232
+ "release",
233
+ "lib",
234
+ "test",
235
+ "makefiles",
236
+ "gmake",
237
+ "vs2010",
238
+ "xcode4",
239
+ "gmake_linux",
240
+ "gmake_macosx",
241
+ "gmake_windows"
242
+ }
243
+
244
+ for i,v in ipairs( directories_to_delete ) do
245
+ os.rmdir( v )
246
+ end
247
+
248
+ if os.is "macosx" then
249
+ os.execute("rm -rf *.xcodeproj")
250
+ os.execute("rm -rf *.xcworkspace")
251
+ end
252
+
253
+ if not os.is "windows" then
254
+ os.execute "find . -name .DS_Store -delete"
255
+ for i,v in ipairs( files_to_delete ) do
256
+ os.execute( "rm -f " .. v )
257
+ end
258
+ else
259
+ for i,v in ipairs( files_to_delete ) do
260
+ os.execute( "del /F /Q " .. v )
261
+ end
262
+ end
263
+
264
+ end
265
+ }