Compare commits

...

7 Commits

Author SHA1 Message Date
Thomas Schönauer
c5566ef43e Update Cargo.toml 2022-10-21 20:19:20 +00:00
Thomas Schönauer
2d52d114be Changed binary name to be backwards compatible, version bump to 10.0.0 (#48)
Changed binary name to be backwards compatible
2022-10-21 20:15:47 +00:00
Thomas Schönauer
08813259a8 Added build scripts for multiple platforms (#47) 2022-10-21 18:41:09 +00:00
Thomas Schönauer
b724aa0f58 Reverse version bump 2022-10-19 15:31:45 +00:00
Manuel
4dccca3d81 Revert fix for older fisher version (#37) 2022-10-19 11:16:38 +00:00
Thomas Schönauer
805d1f8bae Adds Contribution paragraphs to README 2022-10-19 10:55:09 +02:00
Thomas Schönauer
e4e246ddb5 Version bump (#36) 2022-10-18 21:00:44 +00:00
5 changed files with 59 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/target
/build
**/*.rs.bk

View File

@@ -5,13 +5,17 @@ categories = ["os"]
keywords = ["upgrade", "update"]
license-file = "LICENSE"
repository = "https://github.com/topgrade-rs/topgrade"
version = "9.1.0"
version = "10.0.0"
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>", "Thomas Schönauer <t.schoenauer@hgs-wt.at>"]
exclude = ["doc/screenshot.gif"]
edition = "2018"
readme = "README.md"
[[bin]]
name = "topgrade"
path = "src/main.rs"
[dependencies]
directories = "4.0"
serde = { version = "1.0", features = ["derive"] }

View File

@@ -43,6 +43,15 @@ The configuration should be placed in the following paths depending by the opera
* **Windows** - `%APPDATA%/topgrade.toml`
* **macOS** and **other Unix systems** - `${XDG_CONFIG_HOME:-~/.config}/topgrade.toml`
## Contribution
### Problems or missing features?
Open a new Issue describing your problem and if possible with a possible solution.
### Missing a feature or found an unsupported tool/distro?
Just let us now what you are missing by opening an issue.
For tools please open an Issue describing the tool, which platforms it supports and if possible, give us an example of its usage.
### Want to contribute to the code?
Just fork the repository and start coding. Please let PRs with bug fixes target the staging branch and PRs with new features target the dev branch.
## Remote execution
You can specify a key called `remote_topgrades` in the configuration file.
This key should contain a list of hostnames that have topgrade installed on them.

43
build-all.sh Executable file
View File

@@ -0,0 +1,43 @@
#!/usr/bin/env sh
build_function() {
rustup update
cargo install cross
cross build --release --target x86_64-unknown-linux-gnu
cross build --release --target x86_64-unknown-linux-musl
cross build --release --target x86_64-unknown-freebsd
cross build --release --target aarch64-unknown-linux-gnu
cross build --release --target aarch64-unknown-linux-musl
cross build --release --target x86_64-pc-windows-gnu
}
package_function() {
tar -czvf build/topgrade-${ans}-x86_64-linux-gnu.tar.gz target/x86_64-unknown-linux-gnu/release/topgrade
tar -czvf build/topgrade-${ans}-x86_64-linux-musl.tar.gz target/x86_64-unknown-linux-musl/release/topgrade
tar -czvf build/topgrade-${ans}-x86_64-freebsd.tar.gz target/x86_64-unknown-freebsd/release/topgrade
tar -czvf build/topgrade-${ans}-aarch64-linux-gnu.tar.gz target/aarch64-unknown-linux-gnu/release/topgrade
tar -czvf build/topgrade-${ans}-aarch64-linux-musl.tar.gz target/aarch64-unknown-linux-musl/release/topgrade
tar -czvf build/topgrade-${ans}-x86_64-windows.tar.gz target/x86_64-pc-windows-gnu/release/topgrade.exe
}
while true; do
echo "You should always have a look on scripts you download from the internet."
read -p "Do you still want to proceed? (y/n) " yn
echo -n "Input version number: "
read ans
mkdir build
case $yn in
y ) build_function
package_function
break;;
n ) echo exiting...;
exit;;
* ) echo invalid response;;
esac
done

View File

@@ -88,7 +88,7 @@ pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
print_separator("Fisher");
run_type.execute(&fish).args(&["-c", "fisher"]).check_run()
run_type.execute(&fish).args(&["-c", "fisher update"]).check_run()
}
pub fn run_bashit(ctx: &ExecutionContext) -> Result<()> {