mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Let's be Mono friendly
This is a massive overhaul that replaces System.Data.SQLite with Mono.Data.Sqlite. This should make it more compatible with Linux and Mac and has no known downsides for Windows.
This commit is contained in:
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/install.ps1
vendored
Normal file
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/install.ps1
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# Add the SQLite SDK reference
|
||||
$sqliteReference = $project.Object.References.AddSDK("SQLite for Windows Phone", "SQLite.WP80, version=3.8.7.4")
|
||||
Write-Host "Successfully added a reference to the extension SDK SQLite for Windows Phone."
|
||||
Write-Host "Please, verify that the extension SDK SQLite for Windows Phone v3.8.7.4, from the SQLite.org site (http://www.sqlite.org/2014/sqlite-wp80-winrt-3080707.vsix), has been properly installed."
|
||||
|
||||
# This is the global install file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../install.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
|
||||
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/uninstall.ps1
vendored
Normal file
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/uninstall.ps1
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$sqliteReference = $project.Object.References.Find("SQLite.WP80, version=3.8.7.4")
|
||||
|
||||
if ($sqliteReference -eq $null) {
|
||||
Write-Host "Unable to find a reference to the extension SDK SQLite for Windows Phone."
|
||||
Write-Host "Verify that the reference to the extension SDK SQLite for Windows Phone has already been removed."
|
||||
} else {
|
||||
$sqliteReference.Remove()
|
||||
Write-Host "Successfully removed the reference to the extension SDK SQLite for Windows Phone."
|
||||
}
|
||||
|
||||
# This is the global uninstall file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../uninstall.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
Reference in New Issue
Block a user