Compare commits
2 commits
master
...
fix-build-
Author | SHA1 | Date | |
---|---|---|---|
3fd8279c70 | |||
d33032be71 |
|
@ -21,13 +21,13 @@ fatal()
|
||||||
|
|
||||||
download_yolort()
|
download_yolort()
|
||||||
{
|
{
|
||||||
file_name=cppwinrt-2.0.210122.3+windows-10.0.19041+yolort-835cd4e.zip
|
file_name=yolort.zip
|
||||||
yolort_dir="$PROJ_DIR/plugins/windows-notification/yolort"
|
yolort_dir="$PROJ_DIR/plugins/windows-notification/yolort"
|
||||||
|
|
||||||
rm -rf "$yolort_dir"
|
rm -rf "$yolort_dir"
|
||||||
mkdir "$yolort_dir"
|
mkdir "$yolort_dir"
|
||||||
curl -L -o "$file_name" "https://github.com/LAGonauta/YoloRT/releases/download/v1.0.0/$file_name"
|
curl -L -o "$file_name" "https://github.com/mxlgv/YoloRT/releases/download/dev1/$file_name"
|
||||||
echo "675a6d943c97b4acdbfaa473f68d3241d1798b31a67b5529c8d29fc0176a1707 $file_name" | sha256sum --check --status
|
echo "c2727e390da7e842f66e0a4cf0a9f5d9dfb665115bb554152d98f108d322bbc1 $file_name" | sha256sum --check --status
|
||||||
unzip -o "$file_name" -d "$yolort_dir"
|
unzip -o "$file_name" -d "$yolort_dir"
|
||||||
rm -f "$file_name"
|
rm -f "$file_name"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Dino {
|
||||||
public class Util {
|
public class Util {
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
[CCode (cname = "ShellExecuteA", cheader_filename = "windows.h")]
|
[CCode (cname = "ShellExecuteA", cheader_filename = "windows.h")]
|
||||||
private static extern int ShellExecuteA(int* hwnd, string operation, string file, string parameters, string directory, int showCmd);
|
private static extern int* ShellExecuteA(int* hwnd, string operation, string file, string parameters, string directory, int showCmd);
|
||||||
|
|
||||||
[CCode (cname = "CoInitialize", cheader_filename = "windows.h")]
|
[CCode (cname = "CoInitialize", cheader_filename = "windows.h")]
|
||||||
private static extern int CoInitialize(void* reserved);
|
private static extern int CoInitialize(void* reserved);
|
||||||
|
@ -14,7 +14,7 @@ public class Util {
|
||||||
[CCode (cname = "CoUninitialize", cheader_filename = "windows.h")]
|
[CCode (cname = "CoUninitialize", cheader_filename = "windows.h")]
|
||||||
private static extern void CoUninitialize();
|
private static extern void CoUninitialize();
|
||||||
|
|
||||||
private static int ShellExecute(string operation, string file) {
|
private static int* ShellExecute(string operation, string file) {
|
||||||
CoInitialize(null);
|
CoInitialize(null);
|
||||||
var result = ShellExecuteA(null, operation, file, null, null, 1);
|
var result = ShellExecuteA(null, operation, file, null, null, 1);
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
|
|
Loading…
Reference in a new issue