Code signing + auto updater (#122)

* Code signing + auto updater

* remove dist

* update actions

* fixes

* fix more

* commit

* fix cache dir

* quotes

* fix hopefully?

* why yaml

* Fix cache dep path

* Fix updating artifacts

* fix ubuntu ver

* enable autoupdater

* fix pubkey

* fix invalid config

* pass in signing vars

* update pubkey

* Improve compile times
This commit is contained in:
Geometrically
2023-05-23 11:14:22 -07:00
committed by GitHub
parent 1b47eb71e1
commit 8ff1b0d108
11 changed files with 148 additions and 75 deletions

View File

@@ -13,22 +13,19 @@ pub fn debug_pin(_attr: TokenStream, item: TokenStream) -> TokenStream {
let sig = &input.sig;
let body = &input.block;
// Generate tokens for the common part
let common_tokens = quote! {
#(#attrs)*
#vis #sig
};
#[cfg(debug_assertions)]
let result = quote! {
#[cfg(debug_assertions)]
#common_tokens {
#(#attrs)*
#vis #sig {
Box::pin(async move {
#body
}).await
}
#[cfg(not(debug_assertions))]
#common_tokens {
};
#[cfg(not(debug_assertions))]
let result = quote! {
#(#attrs)*
#vis #sig {
#body
}
};