From 804a30bffb5b66b3ee58c30fe5641d27b083b6fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 4 Jul 2020 19:00:11 +0200 Subject: Use my own domain instead of gitlab for packages --- README.md | 2 +- src/Package.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ba2f40..5d1db06 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Simple Build System for Native Languages Sibs is inspired by [Cargo](https://github.com/rust-lang/cargo/), you can think of it like a C/C++/Zig version of Cargo. Sibs can build cmake projects as well, so you can use sibs with existing cmake projects with minimal work. -List of packages can be found at https://gitlab.com/DEC05EBA/sibs_packages/raw/master/packages.json +List of packages can be found at https://git.dec05eba.com/sibs-packages/plain/packages.json (currently in progress of moving existing sibs packages from github to git.dec05eba.com). # Usage ``` diff --git a/src/Package.cpp b/src/Package.cpp index 925de82..a2c1681 100644 --- a/src/Package.cpp +++ b/src/Package.cpp @@ -10,6 +10,8 @@ using namespace std; using namespace rapidjson; +// Cache of package list, only stored in memory right now. +// TODO: Store this in a file as well, and update it when the remote package list updates static Document *packageList = nullptr; namespace sibs @@ -134,7 +136,7 @@ namespace sibs Result Package::getPackage(const char *packageName, const PackageVersionRange &versionRange, Platform platform) { - Result packageList = Package::getPackageList("https://gitlab.com/DEC05EBA/sibs_packages/raw/master/packages.json"); + Result packageList = Package::getPackageList("https://git.dec05eba.com/sibs-packages/plain/packages.json"); if(!packageList) return Result::Err(packageList); -- cgit v1.2.3