-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1178111
commit ebc88bd
Showing
13 changed files
with
180 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,15 @@ jobs: | |
name: oxup-darwin | ||
steps: | ||
- uses: actions/checkout@master | ||
- run: rustup toolchain install stable --profile minimal | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: "" | ||
key: "" | ||
env-vars: "" | ||
workspaces: "" | ||
cache-on-failure: "" | ||
- name: Compile and release | ||
uses: rust-build/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) | ||
# and commit this file to your remote git repository to share the goodness with others. | ||
|
||
tasks: | ||
- init: cargo build | ||
command: cargo watch -x run | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
[package] | ||
name = "oxup" | ||
version = "0.1.0" | ||
version = "1.0.0" | ||
edition = "2021" | ||
|
||
[profile.release] | ||
strip = true | ||
opt-level = "z" | ||
|
||
[dependencies] | ||
regex = "1" | ||
colored = "2.0.0" | ||
regex = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
use std::fs::{create_dir, metadata, remove_file, copy}; | ||
use crate::info; | ||
use colored::Colorize; | ||
use std::fs::{copy, create_dir, metadata, remove_file}; | ||
|
||
pub fn setup_w() { | ||
if !metadata("C:\\bin\\oxido").is_ok() { | ||
if metadata("C:\\bin\\oxido").is_err() { | ||
create_dir("C:\\bin\\oxido").unwrap(); | ||
println!("created directory C:\\bin\\oxido"); | ||
info!["Created directory C:\\bin\\oxido"]; | ||
} | ||
|
||
copy( | ||
"oxup.exe", | ||
"C:\\bin\\oxido\\oxup.exe", | ||
) | ||
.unwrap(); | ||
copy("oxup.exe", "C:\\bin\\oxido\\oxup.exe").unwrap(); | ||
remove_file("oxup.exe").unwrap(); | ||
remove_file("oxup-windows.zip").unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
use crate::success; | ||
use colored::Colorize; | ||
|
||
pub fn uninstall_l() { | ||
std::fs::remove_file(format!("{}/.oxido/bin/oxido", std::env::var("HOME").unwrap())).unwrap(); | ||
std::fs::remove_file(format!( | ||
"{}/.oxido/bin/oxido", | ||
std::env::var("HOME").unwrap() | ||
)) | ||
.unwrap(); | ||
|
||
success!["Oxido has been uninstalled"]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
use crate::success; | ||
use colored::Colorize; | ||
|
||
pub fn uninstall_m() { | ||
std::fs::remove_file(format!("{}/.oxido/bin/oxido", std::env::var("HOME").unwrap())).unwrap(); | ||
std::fs::remove_file(format!( | ||
"{}/.oxido/bin/oxido", | ||
std::env::var("HOME").unwrap() | ||
)) | ||
.unwrap(); | ||
|
||
success!["Oxido has been uninstalled"]; | ||
} |
Oops, something went wrong.