-
Notifications
You must be signed in to change notification settings - Fork 176
/
packaging.ps1
37 lines (32 loc) · 1.25 KB
/
packaging.ps1
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
function Move-File {
param (
[Parameter(Mandatory=$true)]
[string]$sourcePath,
[Parameter(Mandatory=$true)]
[string]$destinationPath
)
# Check if the source file exists
if (-not (Test-Path -Path $sourcePath -PathType Leaf)) {
Write-Output "Source file does not exist."
return
}
# Check if the destination directory exists
$destinationDirectory = Split-Path -Path $destinationPath
if (-not (Test-Path -Path $destinationDirectory -PathType Container)) {
Write-Output "Destination directory does not exist."
return
}
# Move the file to the destination
try {
Move-Item -Path $sourcePath -Destination $destinationPath -Force
Write-Output "File moved successfully."
}
catch {
Write-Output "Failed to move the file: $_"
}
}
Move-File -sourcePath ".\EXILED-DLL-Archiver.exe" -destinationPath ".\bin\Release\EXILED-DLL-Archiver.exe"
Move-File -sourcePath ".\References\Mono.Posix.dll" -destinationPath ".\bin\Release\Mono.Posix.dll"
Move-File -sourcePath ".\References\System.ComponentModel.DataAnnotations.dll" -destinationPath ".\bin\Release\System.ComponentModel.DataAnnotations.dll"
CD .\bin\Release
.\EXILED-DLL-Archiver.exe