using logo in compiled windows binary
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 26 Nov 2021 19:21:20 +0000 (13:21 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 26 Nov 2021 19:21:20 +0000 (13:21 -0600)
build.bat
misc/icon_resource.rc [new file with mode: 0644]
misc/vscode/logo.png [new file with mode: 0644]
misc/vscode/onyx-0.0.1.vsix
misc/vscode/package.json

index dbc4e5b540534193491a82420b839fa21adebc3d..33be618f5dddb17da5c199ac296ae8ae43710128 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -16,6 +16,8 @@ set FLAGS=%FLAGS% "/I%PWD%\lib\windows_x86_64\include" /DENABLE_RUN_WITH_WASMER=
 del *.pdb > NUL 2> NUL
 del *.ilk > NUL 2> NUL
 
-cl.exe %FLAGS% /Iinclude /std:c17 /TC %SOURCE_FILES% /link /IGNORE:4217 %LINK_OPTIONS% /DEBUG /OUT:onyx.exe /incremental:no /opt:ref /subsystem:console
+rc.exe misc/icon_resource.rc
+cl.exe %FLAGS% /Iinclude /std:c17 /TC %SOURCE_FILES% /link /IGNORE:4217 %LINK_OPTIONS% /DEBUG /OUT:onyx.exe /incremental:no /opt:ref /subsystem:console misc\icon_resource.res
 
 del *.obj > NUL 2> NUL
+del misc\icon_resource.res
\ No newline at end of file
diff --git a/misc/icon_resource.rc b/misc/icon_resource.rc
new file mode 100644 (file)
index 0000000..3c4aa25
--- /dev/null
@@ -0,0 +1 @@
+desk1 ICON "docs/logos/logo.ico"
\ No newline at end of file
diff --git a/misc/vscode/logo.png b/misc/vscode/logo.png
new file mode 100644 (file)
index 0000000..21f42e9
Binary files /dev/null and b/misc/vscode/logo.png differ
index 0ffa9e882af5c85bd21aadd347e27017e4090470..b6d5469693b5c6d282fd3e24bf1eac67c5662d6c 100644 (file)
Binary files a/misc/vscode/onyx-0.0.1.vsix and b/misc/vscode/onyx-0.0.1.vsix differ
index afc5a5be0dc6717c00740d03962c914163e9afb3..800cb0dd5bff9ac79938e0c4914a66d8c77b45e6 100644 (file)
@@ -13,6 +13,7 @@
     "activationEvents": [
         "onLanguage:onyx"
     ],
+    "icon": "logo.png",
     "main": "./out/extension.js",
     "contributes": {
         "languages": [