From 6c306ef7b53c4cd2ebcd2b2a1a89c6d1f0d5d3ef Mon Sep 17 00:00:00 2001 From: "bestia.dev" Date: Tue, 14 May 2024 18:37:10 -0500 Subject: [PATCH] releases latest download --- src/template_new_auto_for_cli_mod.rs | 4 ++-- src/template_new_cli_mod.rs | 4 ++-- src/template_new_pwa_wasm_mod.rs | 4 ++-- src/template_new_wasm_mod.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/template_new_auto_for_cli_mod.rs b/src/template_new_auto_for_cli_mod.rs index c2d75b1..e183f04 100644 --- a/src/template_new_auto_for_cli_mod.rs +++ b/src/template_new_auto_for_cli_mod.rs @@ -3,7 +3,7 @@ //! template for new_auto_for_cli (automation_tasks_rs) //! //! The template is downloaded from github -//! +//! #[allow(unused)] use crate::{GREEN, RED, RESET, YELLOW}; @@ -38,7 +38,7 @@ pub fn copy_to_files(rust_project_name: &str) { println!("{YELLOW}Downloading template.tar.gz...{RESET}"); let file_name = "template.tar.gz"; let path = "./template.tar.gz"; - let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_auto_for_cli/releases/download/v1.0.0/template.tar.gz"; + let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_auto_for_cli/releases/latest/download/template.tar.gz"; let reqwest_client = reqwest::blocking::Client::new(); let http_response = reqwest_client.get(url).send(); if http_response.is_err() { diff --git a/src/template_new_cli_mod.rs b/src/template_new_cli_mod.rs index 60c5e71..91bd219 100644 --- a/src/template_new_cli_mod.rs +++ b/src/template_new_cli_mod.rs @@ -3,7 +3,7 @@ //! template for new_cli //! //! The template is downloaded from github -//! +//! use crate::{GREEN, RED, RESET, YELLOW}; @@ -41,7 +41,7 @@ pub fn copy_to_files(rust_project_name: &str, github_owner_or_organization: &str println!("{YELLOW}Downloading template.tar.gz...{RESET}"); let file_name = "template.tar.gz"; let path = "./template.tar.gz"; - let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_cli/releases/download/v0.0.3/template.tar.gz"; + let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_cli/releases/latest/download/template.tar.gz"; let reqwest_client = reqwest::blocking::Client::new(); let http_response = reqwest_client.get(url).send(); if http_response.is_err() { diff --git a/src/template_new_pwa_wasm_mod.rs b/src/template_new_pwa_wasm_mod.rs index f84cf27..fbbe09b 100644 --- a/src/template_new_pwa_wasm_mod.rs +++ b/src/template_new_pwa_wasm_mod.rs @@ -3,7 +3,7 @@ //! template for new_pwa_wasm //! //! The template is downloaded from github -//! +//! use crate::{GREEN, RED, RESET, YELLOW}; @@ -140,7 +140,7 @@ pub fn copy_to_files(rust_project_name: &str, github_owner_or_organization: &str println!("{YELLOW}Downloading template.tar.gz...{RESET}"); let file_name = "template.tar.gz"; let path = "./template.tar.gz"; - let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_pwa_wasm/releases/download/v0.0.5/template.tar.gz"; + let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_pwa_wasm/releases/latest/download/template.tar.gz"; let reqwest_client = reqwest::blocking::Client::new(); let http_response = reqwest_client.get(url).send(); if http_response.is_err() { diff --git a/src/template_new_wasm_mod.rs b/src/template_new_wasm_mod.rs index 02ba3b0..69e2741 100644 --- a/src/template_new_wasm_mod.rs +++ b/src/template_new_wasm_mod.rs @@ -3,7 +3,7 @@ //! template for new_wasm //! //! The template is downloaded from github -//! +//! use crate::{GREEN, RED, RESET, YELLOW}; @@ -52,7 +52,7 @@ pub fn copy_to_files(rust_project_name: &str, github_owner_or_organization: &str println!("{YELLOW}Downloading template.tar.gz...{RESET}"); let file_name = "template.tar.gz"; let path = "./template.tar.gz"; - let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_wasm/releases/download/v0.0.2/template.tar.gz"; + let url = "https://github.com/automation-tasks-rs/cargo_auto_template_new_wasm/releases/latest/download/template.tar.gz"; let reqwest_client = reqwest::blocking::Client::new(); let http_response = reqwest_client.get(url).send(); if http_response.is_err() {