-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcreateRelease.ahk
More file actions
43 lines (27 loc) · 826 Bytes
/
createRelease.ahk
File metadata and controls
43 lines (27 loc) · 826 Bytes
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
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
deploymentDir := A_ScriptDir "\tcbrute"
if(FileExist(deploymentDir) == ""){
; in case it doesnt exist
FileCreateDir, %deploymentDir%
} else {
; clean current depolyment folder
loop, %deploymentDir%\.*
FileDelete, % A_LoopFileFullPath
}
CopyCurrentReleaseBin(deploymentDir)
CopyCurrentReleaseInfo(deploymentDir)
return
CopyCurrentReleaseBin(target){
source := A_ScriptDir "\truecryptbrute\bin\Release"
if(FileExist(source) == "")
MsgBox Can't find '%source%'
FileCopyDir, %source%, %target%\bin
if(ErrorLevel)
MsgBox failed to copy release binarys
}
CopyCurrentReleaseInfo(target){
readme := A_ScriptDir "\readme.txt"
license := A_ScriptDir "\license.txt"
FileCopy, % readme, % target
FileCopy, % license, % target
}