Skip to content

Commit

Permalink
- updated build script, dependencies and project configuration
Browse files Browse the repository at this point in the history
- removed deprecated library checks
  • Loading branch information
firestorm40 committed Sep 27, 2024
1 parent c043b3f commit 7cfb79c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 39 deletions.
18 changes: 0 additions & 18 deletions SpixiBot/App.config

This file was deleted.

9 changes: 0 additions & 9 deletions SpixiBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ static void checkRequiredFiles()
"Newtonsoft.Json.dll",
"Open.Nat.dll",
"SQLite-net.dll",
"SQLitePCLRaw.batteries_green.dll",
"SQLitePCLRaw.batteries_v2.dll",
"SQLitePCLRaw.core.dll",
"SQLitePCLRaw.provider.e_sqlite3.dll"
Expand All @@ -46,14 +45,6 @@ static void checkRequiredFiles()
}
}

// Special case for sqlite3
if (!File.Exists("x64" + Path.DirectorySeparatorChar + "e_sqlite3.dll") && !File.Exists("libe_sqlite3.so") && !File.Exists("libe_sqlite3.dylib"))
{
Logging.error(String.Format("Missing '{0}' in the program folder. Possibly the IXIAN archive was corrupted or incorrectly installed. Please re-download the archive from https://www.ixian.io!", "sqlite3"));
Logging.info("Press ENTER to exit.");
Console.ReadLine();
Environment.Exit(-1);
}

}

Expand Down
8 changes: 1 addition & 7 deletions SpixiBot/SpixiBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@
<PackageReference Include="FluentCommandLineParser" Version="1.4.3" />
<PackageReference Include="Open.Nat" Version="2.1.0" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.6.292" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.core" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.linux" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.osx" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.v110_xp" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.provider.e_sqlite3.netstandard11" Version="1.1.14" />
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0" />
</ItemGroup>
Expand Down
8 changes: 3 additions & 5 deletions rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/sh -e
echo Rebuilding Spixi Bot...
echo Cleaning previous build
msbuild SpixiBot.sln /p:Configuration=Release /target:Clean
echo Removing packages
rm -rf packages
dotnet clean --configuration Release
echo Restoring packages
nuget restore SpixiBot.sln
dotnet restore
echo Building Spixi Bot
msbuild SpixiBot.sln /p:Configuration=Release
dotnet build --configuration Release
echo Done rebuilding Spixi Bot

0 comments on commit 7cfb79c

Please sign in to comment.