mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
moved SQL CE to Nuget.
This commit is contained in:
parent
67f7b83f03
commit
3cd4ee3996
31 changed files with 876 additions and 20 deletions
12
packages/SqlServerCompact.4.0.8482.1/Tools/GetSqlCEPostBuildCmd.ps1
vendored
Normal file
12
packages/SqlServerCompact.4.0.8482.1/Tools/GetSqlCEPostBuildCmd.ps1
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
$solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
|
||||
$path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
|
||||
|
||||
$NativeAssembliesDir = Join-Path $path "NativeBinaries"
|
||||
$x86 = $(Join-Path $NativeAssembliesDir "x86\*.*")
|
||||
$x64 = $(Join-Path $NativeAssembliesDir "amd64\*.*")
|
||||
|
||||
$SqlCEPostBuildCmd = "
|
||||
if not exist `"`$(TargetDir)x86`" md `"`$(TargetDir)x86`"
|
||||
xcopy /s /y `"$x86`" `"`$(TargetDir)x86`"
|
||||
if not exist `"`$(TargetDir)amd64`" md `"`$(TargetDir)amd64`"
|
||||
xcopy /s /y `"$x64`" `"`$(TargetDir)amd64`""
|
11
packages/SqlServerCompact.4.0.8482.1/Tools/install.ps1
vendored
Normal file
11
packages/SqlServerCompact.4.0.8482.1/Tools/install.ps1
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
. (Join-Path $toolsPath "GetSqlCEPostBuildCmd.ps1")
|
||||
|
||||
# Get the current Post Build Event cmd
|
||||
$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
|
||||
|
||||
# Append our post build command if it's not already there
|
||||
if (!$currentPostBuildCmd.Contains($SqlCEPostBuildCmd)) {
|
||||
$project.Properties.Item("PostBuildEvent").Value += $SqlCEPostBuildCmd
|
||||
}
|
9
packages/SqlServerCompact.4.0.8482.1/Tools/uninstall.ps1
vendored
Normal file
9
packages/SqlServerCompact.4.0.8482.1/Tools/uninstall.ps1
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
. (Join-Path $toolsPath "GetSqlCEPostBuildCmd.ps1")
|
||||
|
||||
# Get the current Post Build Event cmd
|
||||
$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
|
||||
|
||||
# Remove our post build command from it (if it's there)
|
||||
$project.Properties.Item("PostBuildEvent").Value = $currentPostBuildCmd.Replace($SqlCEPostBuildCmd, "")
|
Loading…
Add table
Add a link
Reference in a new issue