-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild Automation.xojo_code
58 lines (38 loc) · 1.84 KB
/
Build Automation.xojo_code
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
#tag BuildAutomation
Begin BuildStepList Linux
Begin BuildProjectStep Build
End
End
Begin BuildStepList Mac OS X
Begin BuildProjectStep Build
End
Begin IDEScriptBuildStep ScriptDropBoxIgnoreDebug , AppliesTo = 1, Architecture = 0
// can use native (unescaped) paths as wrapped in quotes in DoShellCommand below
var path as String = CurrentBuildLocationNative + "/" + CurrentBuildAppName + ".app"
var result as String = DoShellCommand( "xattr -w com.dropbox.ignored 1 """ + path + """" )
if result <> "" then print( result )
End
Begin IDEScriptBuildStep ScriptDropBoxIgnoreRelelase , AppliesTo = 2, Architecture = 0
// we want the “parent” Builds folder, not the platform specific one
// can use native (unescaped) paths as wrapped in quotes in DoShellCommand below
var bits() as String = CurrentBuildLocationNative.Split( "/" )
var path as String
for i as Integer = 0 to bits.LastRowIndex - 1
path = path + bits( i )
if i < bits.LastRowIndex - 1 then path = path + "/"
next
var result as String = DoShellCommand( "xattr -w com.dropbox.ignored 1 """ + path + """" )
if result <> "" then print( result )
End
Begin IDEScriptBuildStep ScriptIgnoreDotGit , AppliesTo = 0, Architecture = 0
var result as String = DoShellCommand( "[ -d ""$PROJECT_PATH/.git"" ] && xattr -w com.dropbox.ignored 1 ""$PROJECT_PATH/.git""" )
if result <> "" then print( result )
result = DoShellCommand( "[ -d ""$PROJECT_PATH/../.git"" ] && xattr -w com.dropbox.ignored 1 ""$PROJECT_PATH/../.git""" )
if result <> "" then print( result )
End
End
Begin BuildStepList Windows
Begin BuildProjectStep Build
End
End
#tag EndBuildAutomation