mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +02:00
Add CAFile and CAPath config options, use mbedtls in static builds
This is how we'll handle systems where the cert bundle and cert directory is stored where mbedtls doesn't expect it. Also update tpt-libs to get new curl and mbedtls.
This commit is contained in:
@@ -68,7 +68,7 @@ tpt_libs_debug = is_debug ? 'debug' : 'release'
|
|||||||
tpt_libs_variant = '@0@-@1@-@2@-@3@'.format(host_arch, host_platform, host_libc, tpt_libs_static)
|
tpt_libs_variant = '@0@-@1@-@2@-@3@'.format(host_arch, host_platform, host_libc, tpt_libs_static)
|
||||||
tpt_libs_vtag = get_option('tpt_libs_vtag')
|
tpt_libs_vtag = get_option('tpt_libs_vtag')
|
||||||
if tpt_libs_vtag == ''
|
if tpt_libs_vtag == ''
|
||||||
tpt_libs_vtag = 'v20220901212941'
|
tpt_libs_vtag = 'v20220922162009'
|
||||||
endif
|
endif
|
||||||
if tpt_libs_static != 'none'
|
if tpt_libs_static != 'none'
|
||||||
if tpt_libs_variant not in [
|
if tpt_libs_variant not in [
|
||||||
|
@@ -324,6 +324,8 @@ std::map<ByteString, ByteString> readArguments(int argc, char * argv[])
|
|||||||
//Defaults
|
//Defaults
|
||||||
arguments["scale"] = "";
|
arguments["scale"] = "";
|
||||||
arguments["proxy"] = "";
|
arguments["proxy"] = "";
|
||||||
|
arguments["cafile"] = "";
|
||||||
|
arguments["capath"] = "";
|
||||||
arguments["nohud"] = "false"; //the nohud, sound, and scripts commands currently do nothing.
|
arguments["nohud"] = "false"; //the nohud, sound, and scripts commands currently do nothing.
|
||||||
arguments["sound"] = "false";
|
arguments["sound"] = "false";
|
||||||
arguments["kiosk"] = "false";
|
arguments["kiosk"] = "false";
|
||||||
@@ -346,6 +348,20 @@ std::map<ByteString, ByteString> readArguments(int argc, char * argv[])
|
|||||||
else
|
else
|
||||||
arguments["proxy"] = "false";
|
arguments["proxy"] = "false";
|
||||||
}
|
}
|
||||||
|
else if (!strncmp(argv[i], "cafile:", 7))
|
||||||
|
{
|
||||||
|
if(argv[i][7])
|
||||||
|
arguments["cafile"] = &argv[i][7];
|
||||||
|
else
|
||||||
|
arguments["cafile"] = "false";
|
||||||
|
}
|
||||||
|
else if (!strncmp(argv[i], "capath:", 7))
|
||||||
|
{
|
||||||
|
if(argv[i][7])
|
||||||
|
arguments["capath"] = &argv[i][7];
|
||||||
|
else
|
||||||
|
arguments["capath"] = "false";
|
||||||
|
}
|
||||||
else if (!strncmp(argv[i], "nohud", 5))
|
else if (!strncmp(argv[i], "nohud", 5))
|
||||||
{
|
{
|
||||||
arguments["nohud"] = "true";
|
arguments["nohud"] = "true";
|
||||||
@@ -818,34 +834,32 @@ int main(int argc, char * argv[])
|
|||||||
Client::Ref().SetPref("Scale", scale);
|
Client::Ref().SetPref("Scale", scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteString proxyString = "";
|
auto clientConfig = [](ByteString cmdlineValue, ByteString configName, ByteString defaultValue) {
|
||||||
if(arguments["proxy"].length())
|
ByteString value;
|
||||||
{
|
if (cmdlineValue.length())
|
||||||
if(arguments["proxy"] == "false")
|
|
||||||
{
|
{
|
||||||
proxyString = "";
|
value = cmdlineValue;
|
||||||
Client::Ref().SetPref("Proxy", "");
|
if (value == "false")
|
||||||
|
{
|
||||||
|
value = defaultValue;
|
||||||
|
}
|
||||||
|
Client::Ref().SetPref(configName, value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
proxyString = (arguments["proxy"]);
|
value = Client::Ref().GetPrefByteString(configName, defaultValue);
|
||||||
Client::Ref().SetPref("Proxy", arguments["proxy"]);
|
|
||||||
}
|
}
|
||||||
}
|
return value;
|
||||||
else
|
};
|
||||||
{
|
ByteString proxyString = clientConfig(arguments["proxy"], "Proxy", "");
|
||||||
auto proxyPref = Client::Ref().GetPrefByteString("Proxy", "");
|
ByteString cafileString = clientConfig(arguments["cafile"], "CAFile", "");
|
||||||
if (proxyPref.length())
|
ByteString capathString = clientConfig(arguments["capath"], "CAPath", "");
|
||||||
{
|
|
||||||
proxyString = proxyPref;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool disableNetwork = false;
|
bool disableNetwork = false;
|
||||||
if (arguments.find("disable-network") != arguments.end())
|
if (arguments.find("disable-network") != arguments.end())
|
||||||
disableNetwork = true;
|
disableNetwork = true;
|
||||||
|
|
||||||
Client::Ref().Initialise(proxyString, disableNetwork);
|
Client::Ref().Initialise(proxyString, cafileString, capathString, disableNetwork);
|
||||||
|
|
||||||
// TODO: maybe bind the maximum allowed scale to screen size somehow
|
// TODO: maybe bind the maximum allowed scale to screen size somehow
|
||||||
if(scale < 1 || scale > SCALE_MAXIMUM)
|
if(scale < 1 || scale > SCALE_MAXIMUM)
|
||||||
|
@@ -104,7 +104,7 @@ Client::Client():
|
|||||||
firstRun = true;
|
firstRun = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::Initialise(ByteString proxyString, bool disableNetwork)
|
void Client::Initialise(ByteString proxy, ByteString cafile, ByteString capath, bool disableNetwork)
|
||||||
{
|
{
|
||||||
#if !defined(FONTEDITOR) && !defined(RENDERER)
|
#if !defined(FONTEDITOR) && !defined(RENDERER)
|
||||||
if (GetPrefBool("version.update", false))
|
if (GetPrefBool("version.update", false))
|
||||||
@@ -116,7 +116,7 @@ void Client::Initialise(ByteString proxyString, bool disableNetwork)
|
|||||||
|
|
||||||
#ifndef NOHTTP
|
#ifndef NOHTTP
|
||||||
if (!disableNetwork)
|
if (!disableNetwork)
|
||||||
http::RequestManager::Ref().Initialise(proxyString);
|
http::RequestManager::Ref().Initialise(proxy, cafile, capath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//Read stamps library
|
//Read stamps library
|
||||||
|
@@ -110,7 +110,7 @@ public:
|
|||||||
void SetMessageOfTheDay(String message);
|
void SetMessageOfTheDay(String message);
|
||||||
String GetMessageOfTheDay();
|
String GetMessageOfTheDay();
|
||||||
|
|
||||||
void Initialise(ByteString proxyString, bool disableNetwork);
|
void Initialise(ByteString proxy, ByteString cafile, ByteString capath, bool disableNetwork);
|
||||||
bool IsFirstRun();
|
bool IsFirstRun();
|
||||||
|
|
||||||
bool ReadFile(std::vector<char> &fileData, ByteString filename);
|
bool ReadFile(std::vector<char> &fileData, ByteString filename);
|
||||||
|
@@ -242,6 +242,14 @@ namespace http
|
|||||||
{
|
{
|
||||||
curl_easy_setopt(easy, CURLOPT_PROXY, proxy.c_str());
|
curl_easy_setopt(easy, CURLOPT_PROXY, proxy.c_str());
|
||||||
}
|
}
|
||||||
|
if (cafile.size())
|
||||||
|
{
|
||||||
|
curl_easy_setopt(easy, CURLOPT_CAINFO, cafile.c_str());
|
||||||
|
}
|
||||||
|
if (capath.size())
|
||||||
|
{
|
||||||
|
curl_easy_setopt(easy, CURLOPT_CAPATH, capath.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
curl_easy_setopt(easy, CURLOPT_PRIVATE, (void *)this);
|
curl_easy_setopt(easy, CURLOPT_PRIVATE, (void *)this);
|
||||||
curl_easy_setopt(easy, CURLOPT_USERAGENT, user_agent.c_str());
|
curl_easy_setopt(easy, CURLOPT_USERAGENT, user_agent.c_str());
|
||||||
|
@@ -84,10 +84,6 @@ namespace http
|
|||||||
};
|
};
|
||||||
|
|
||||||
String StatusText(int code);
|
String StatusText(int code);
|
||||||
|
|
||||||
extern const long timeout;
|
|
||||||
extern ByteString proxy;
|
|
||||||
extern ByteString user_agent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // REQUEST_H
|
#endif // REQUEST_H
|
||||||
|
@@ -11,6 +11,8 @@ namespace http
|
|||||||
{
|
{
|
||||||
const long timeout = 15;
|
const long timeout = 15;
|
||||||
ByteString proxy;
|
ByteString proxy;
|
||||||
|
ByteString cafile;
|
||||||
|
ByteString capath;
|
||||||
ByteString user_agent;
|
ByteString user_agent;
|
||||||
|
|
||||||
void RequestManager::Shutdown()
|
void RequestManager::Shutdown()
|
||||||
@@ -33,7 +35,7 @@ namespace http
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RequestManager::Initialise(ByteString Proxy)
|
void RequestManager::Initialise(ByteString newProxy, ByteString newCafile, ByteString newCapath)
|
||||||
{
|
{
|
||||||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
multi = curl_multi_init();
|
multi = curl_multi_init();
|
||||||
@@ -42,7 +44,9 @@ namespace http
|
|||||||
curl_multi_setopt(multi, CURLMOPT_MAX_HOST_CONNECTIONS, curl_max_host_connections);
|
curl_multi_setopt(multi, CURLMOPT_MAX_HOST_CONNECTIONS, curl_max_host_connections);
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy = Proxy;
|
proxy = newProxy;
|
||||||
|
cafile = newCafile;
|
||||||
|
capath = newCapath;
|
||||||
|
|
||||||
user_agent =
|
user_agent =
|
||||||
"PowderToy/" MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) " ("
|
"PowderToy/" MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) " ("
|
||||||
|
@@ -44,7 +44,7 @@ namespace http
|
|||||||
RequestManager() { }
|
RequestManager() { }
|
||||||
~RequestManager() { }
|
~RequestManager() { }
|
||||||
|
|
||||||
void Initialise(ByteString proxy);
|
void Initialise(ByteString newProxy, ByteString newCafile, ByteString newCapath);
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
|
|
||||||
friend class Request;
|
friend class Request;
|
||||||
@@ -52,6 +52,8 @@ namespace http
|
|||||||
|
|
||||||
extern const long timeout;
|
extern const long timeout;
|
||||||
extern ByteString proxy;
|
extern ByteString proxy;
|
||||||
|
extern ByteString cafile;
|
||||||
|
extern ByteString capath;
|
||||||
extern ByteString user_agent;
|
extern ByteString user_agent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 5d6d201b0872883996d0f4b68eafd4711cef223666558689f4a92ddb733fc49c
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-aarch64-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_hash = c588dbe9bda6e2fdfe18af0bea923bc219b0c34eae7666b530738d61e795e2cd
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_hash = 2e2ee7a9a54da1e7c0dc0d2b11975ebf0e037c9a97d8295eea1ea244917344a8
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-aarch64-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_hash = 60338e3e271d9cb22023ce29ffded26442b43f5a4c77ffb3eebb1a67638fff2c
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 27e540962ee324d8c49f927bff0b0fdd9e7e196eeeb9b7652217f9f2d7d64efa
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-aarch64-darwin-macos-static-debug-v20220922162009.zip
|
||||||
|
source_hash = e26e7b15250d991e724fdb028e822b66e5b5a78ed79a7d38f133a19f07f1cbd6
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220901212941.zip
|
|
||||||
source_hash = c910019bbcb765236a0e26faa0e4974000411f0ca4b470d529efeb7c4c8cd008
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-aarch64-darwin-macos-static-release-v20220922162009.zip
|
||||||
|
source_hash = 68a7f6b39c3ec4cef01413fefffcd7a55e6ccd7942aba17436902a22d37a5b25
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 0cfde7e1afe53ed13e6ab2863ac521eaa22abb78087c7a9d0f86d9e68e2ba365
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-arm-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_hash = 5d7c874ae9a9ced23c1baabe77439d7f731c2e21fc17a34bfc41cfcab47a5137
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-arm-android-bionic-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-arm-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-arm-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_hash = 77287c4f15480951978dbaa360e9921a2398cceae916658b3810b42f3e538cd1
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-arm-android-bionic-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-arm-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-arm-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_hash = d8cd33587ef3073d4ef8b06277ab9a68966964adf784371984ec6e38e2eb6734
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_hash = ee8496f3bbabe58f98959081913b63da099195ace0e09c0451f7410c4db42373
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_hash = a3f0d9dfa85a1c4200440288dd2722ca69ef1b1bfb3857c977d361547eabbc90
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-android-bionic-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_hash = b1fefbb0255203e5276034e64f25d0775003077619528a8bdfd1ffcb603c4c10
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-android-bionic-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_hash = 53f4e74cc8f8513a105ab06cebcdcb6b4ba5bf6769bf86f67116d269566b0303
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220901212941.zip
|
|
||||||
source_hash = 0faf7eacc8189e7b1b5e881c4c30989ae54224d8b8d75b17b488bb7f5facbc94
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-windows-msvc-dynamic-debug-v20220922162009.zip
|
||||||
|
source_hash = a424585f7bc179d50e2e8f6687ee250156f8ff422af40d7368af737092735688
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220901212941.zip
|
|
||||||
source_hash = 21c04cc1d3e9212d6728eb20a16084f093aed9d1de47cd8fadfdd277189b7462
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-windows-msvc-dynamic-release-v20220922162009.zip
|
||||||
|
source_hash = 54863c2913c4a52fca5f9877760ee02e03b8da5e8d13fea582af3a19c176bc7c
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220901212941.zip
|
|
||||||
source_hash = fb307b0c2e007fc6cdf7e1ec3f30868cb2e458b62b1519ccf122a9747f94cc19
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-windows-msvc-static-debug-v20220922162009.zip
|
||||||
|
source_hash = c6bb9d564d9d9101521ab7cbc8649168731a6753d4d6c1615d5f802200ee7e67
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220901212941.zip
|
|
||||||
source_hash = 06d3c3d2f259ddadbdec6222d210a5cb6da5fc8679aee52eda324a189f1b60bc
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86-windows-msvc-static-release-v20220922162009.zip
|
||||||
|
source_hash = d6c9a7f3939d8099a1e59a4a9de5a473e20496e33007b9d07785a8bc53e47013
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 554ac18bf9c062bb886f04fc83263979c674c2d55915e7e66e0fd951e955d77b
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-android-bionic-static-debug-v20220922162009.zip
|
||||||
|
source_hash = 85978422d719ce70ea80e815a451a37978ae203b227e67ad8fc688de7795a6ad
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220901212941.zip
|
|
||||||
source_hash = 5e2bbc2defec6e22c9a42179ed33b0589e47cc7c310cca291ec3e823a1f5ea5d
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-android-bionic-static-release-v20220922162009.zip
|
||||||
|
source_hash = c7eb4d2c17b408253e3adf108c85e1338e58688a7e690c7471646ab0f336d013
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 1dd115e9e86b068eaf62deb3b4ee6fdd39e1e3fd1a45e4e0526115429c30258b
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-darwin-macos-static-debug-v20220922162009.zip
|
||||||
|
source_hash = e14b836dc267697addf7aeac650ed60e7d91659422c31eea7e6439ca9a5117df
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220901212941.zip
|
|
||||||
source_hash = 5951d2605e78c83ebf79f65a929d4dac0295e0fee58c3af8488eced1e578321b
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-darwin-macos-static-release-v20220922162009.zip
|
||||||
|
source_hash = 3e977f1763f23dee7be16b1e3f3fa0db94a531cf44d5cf4a7b7f2a56cdfea7a6
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 750d9abb4b257e0f5702e3904150f9521e44ecd97a0f8af4a9262b90f4bad4da
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-linux-gnu-static-debug-v20220922162009.zip
|
||||||
|
source_hash = 931fc98bc7a27dc2cb46f0df4a6e8a102e7c44098f8091295a0feee302ae7bd6
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220901212941.zip
|
|
||||||
source_hash = 0466d7309f1b9989e3ae74e67560bddb7b0a24a914b4da8901396ce8fadd80e9
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-linux-gnu-static-release-v20220922162009.zip
|
||||||
|
source_hash = 762135c46efa816d588aa1635b75114247dfc987d5b62f9d0d9c406e515e6172
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220901212941.zip
|
|
||||||
source_hash = 0c680924335e0a9dc1e9479195b764244a6f441eee4dffaf460375baf106b21d
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-debug-v20220922162009.zip
|
||||||
|
source_hash = d35c6105fb23e60e6532393577a1f39fb6c08428b99c99342aee1f06ce067898
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220901212941.zip
|
|
||||||
source_hash = 48f91167a78c7744d9cf00f79b046583268c4b9132b870560bbcf35a8d590191
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-dynamic-release-v20220922162009.zip
|
||||||
|
source_hash = 79433f4bc71780f76b4e6e7976fa74063ba683167f526bc172dc2f92c98c4d1e
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 55efb0c7b45d398ee29777ff32223191a850783e0215ddcdd60c1d8dc94d7128
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-static-debug-v20220922162009.zip
|
||||||
|
source_hash = 635e8e9885874b80b6a22843222a0b2241d634a44c3a39af19ecd9d2ec7e20c5
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220901212941.zip
|
|
||||||
source_hash = 34b1b9096fb16e41c0c6f0f8cf291b333d46cda72bdbdf1009eb4fdfbc6695f6
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-mingw-static-release-v20220922162009.zip
|
||||||
|
source_hash = af7f2912750677ceb596d66a429fb8f48699c1f302ced517054e6f8f7a9d0e35
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220901212941.zip
|
|
||||||
source_hash = 6089faf76116a86c46014ec82e3922d155f3e56cef1dee70b4a311f822bc8325
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-debug-v20220922162009.zip
|
||||||
|
source_hash = ddb076ba92ab263608332608d2da8691ce7b85dd10ce0c22b49a69e2cf340507
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220901212941.zip
|
|
||||||
source_hash = ba3193ac2baca305a00dda577f1ddefc3209aa9bccfa197961a360a4de1b9b35
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-dynamic-release-v20220922162009.zip
|
||||||
|
source_hash = cc18fa66f62418f9078723eb2008acdd7b87324b392cc5a43b5f6b6dac983830
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220901212941.zip
|
|
||||||
source_hash = 4cd79adda8a6dd7707c2b9a55f1e9d6ffa40f1bba4d68026460046d160f5a2b1
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-static-debug-v20220922162009.zip
|
||||||
|
source_hash = 16ade56d47a8cc95226891105b0f1b9d165f86d8479d28d4517b57160dbb20b1
|
@@ -1,6 +0,0 @@
|
|||||||
[wrap-file]
|
|
||||||
directory = tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220901212941
|
|
||||||
|
|
||||||
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220901212941/tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220901212941.zip
|
|
||||||
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220901212941.zip
|
|
||||||
source_hash = afa4b34d61c7ddbd6a2345beec10c107e6462fe6cafecf9e630e34d33b2ca91b
|
|
@@ -0,0 +1,6 @@
|
|||||||
|
[wrap-file]
|
||||||
|
directory = tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220922162009
|
||||||
|
|
||||||
|
source_url = https://github.com/The-Powder-Toy/tpt-libs/releases/download/v20220922162009/tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220922162009.zip
|
||||||
|
source_filename = tpt-libs-prebuilt-x86_64-windows-msvc-static-release-v20220922162009.zip
|
||||||
|
source_hash = 6bb36c4129f8d4006de7df89ee12d487f4047d1bc68cd3a66c0855a7cc1c4fc3
|
@@ -4,6 +4,11 @@ set -euo pipefail
|
|||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
if [[ -z ${1-} ]] || [[ -z ${2-} ]] || [[ -z ${3-} ]]; then
|
||||||
|
>&2 echo "usage: ./update-wraps.sh OWNER REPO TAG"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
owner=$1
|
owner=$1
|
||||||
repo=$2
|
repo=$2
|
||||||
tag=$3
|
tag=$3
|
||||||
|
Reference in New Issue
Block a user