Skip to content

Commit

Permalink
Merge pull request #3 from cqb13/dev
Browse files Browse the repository at this point in the history
release-0.1.4
  • Loading branch information
cqb13 committed Jan 10, 2024
2 parents d8aeaec + c27e362 commit 55f1dc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 31 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ jobs:
run: |
choco install zip
cd target/${{ matrix.target }}/release
zip fmap-0.1.3-${{ matrix.target }}.zip fmap.exe
zip fmap-0.1.4-${{ matrix.target }}.zip fmap.exe
cd ../../..
- name: Create tar.gz file on macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
chmod +x target/${{ matrix.target }}/release/fmap
tar -zcf target/${{ matrix.target }}/release/fmap-0.1.3-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release fmap
tar -zcf target/${{ matrix.target }}/release/fmap-0.1.4-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release fmap
chmod +x target/${{ matrix.target2 }}/release/fmap
tar -zcf target/${{ matrix.target2 }}/release/fmap-0.1.3-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release fmap
tar -zcf target/${{ matrix.target2 }}/release/fmap-0.1.4-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release fmap
- name: Upload release and assets to GitHub
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "release-0.1.3-${{ github.run_number }}"
release_name: fmap 0.1.3
tag: "release-0.1.4-${{ github.run_number }}"
release_name: fmap 0.1.4
file_glob: true
file: target/*/release/fmap-0.1.3-*.{zip,tar.gz}
file: target/*/release/fmap-0.1.4-*.{zip,tar.gz}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fmap"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
authors = ["cqb13 <cqb13.dev@gmail.com>"]
license = "MIT"
Expand Down
23 changes: 0 additions & 23 deletions src/system/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,6 @@ pub fn install(os: &OS) {
println!("install complete");
}

pub fn uninstall(os: &OS) {
println!("starting uninstall on {}", os.get_name());

let home_dir = get_user_home_dir(os);

match os {
OS::Windows => {
println!("uninstalling on windows");
}
OS::Mac => {
let local_bin_path = format!("{}/.local/bin", home_dir);
if std::path::Path::new(&local_bin_path).exists() {
println!("removing binary from .local/bin");
std::fs::remove_file(&local_bin_path).unwrap();
}

// path is not removed as their may be other binaries later added into the directory
}
}

println!("uninstall complete");
}

fn add_registry_path(new_path: &str) -> std::io::Result<()> {
use std::process::Command;

Expand Down

0 comments on commit 55f1dc9

Please sign in to comment.