From 2c03f13f75c04abb80be1c2fd62b4f5335423b24 Mon Sep 17 00:00:00 2001 From: rzmk <30333942+rzmk@users.noreply.github.com> Date: Mon, 18 Aug 2025 05:15:20 -0400 Subject: [PATCH] feat: add install script and mention where to report issues --- install.bash | 20 ++++++++++++++++++++ src/main.rs | 5 ++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 install.bash diff --git a/install.bash b/install.bash new file mode 100644 index 0000000..11e582f --- /dev/null +++ b/install.bash @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Update/Upgrade system dependencies +sudo apt update -y +sudo apt upgrade -y + +# Install curl +sudo apt install curl -y + +# Change to the home directory +cd ~/ + +# Download the ckan-devstaller binary file +curl -LO https://github.com/dathere/ckan-devstaller/releases/download/0.1.0/ckan-devstaller + +# Add execute permission to ckan-devstaller binary file +sudo chmod +x ./ckan-devstaller + +# Run the ckan-devstaller binary file +./ckan-devstaller diff --git a/src/main.rs b/src/main.rs index ae75c24..3779d52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,8 @@ -use std::{path::PathBuf, str::FromStr}; - use anyhow::Result; use inquire::Confirm; use owo_colors::{OwoColorize, Stream::Stdout}; use serde_json::json; +use std::{path::PathBuf, str::FromStr}; use xshell::cmd; use xshell_venv::{Shell, VirtualEnv}; @@ -14,7 +13,7 @@ fn main() -> Result<()> { "https://datHere.com".if_supports_color(Stdout, |text| text.on_blue().white()), ); println!( - "This installer should assist in setting up {} from a source installation along with ckan-compose (https://github.com/tino097/ckan-compose).", + "This installer should assist in setting up {} from a source installation along with ckan-compose (https://github.com/tino097/ckan-compose). If you have any issues, please report them at https://github.com/dathere/ckan-devstaller/issues.", "CKAN 2.11.3".if_supports_color(Stdout, |text| text.on_blue().white()) ); println!(