Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5566ef43e | ||
|
|
2d52d114be | ||
|
|
08813259a8 | ||
|
|
b724aa0f58 | ||
|
|
4dccca3d81 | ||
|
|
805d1f8bae | ||
|
|
e4e246ddb5 | ||
|
|
7528aa090b | ||
|
|
9cd155f7ea |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
/target
|
/target
|
||||||
|
/build
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|||||||
@@ -5,13 +5,17 @@ categories = ["os"]
|
|||||||
keywords = ["upgrade", "update"]
|
keywords = ["upgrade", "update"]
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
repository = "https://github.com/topgrade-rs/topgrade"
|
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>"]
|
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>", "Thomas Schönauer <t.schoenauer@hgs-wt.at>"]
|
||||||
exclude = ["doc/screenshot.gif"]
|
exclude = ["doc/screenshot.gif"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "topgrade"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
directories = "4.0"
|
directories = "4.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|||||||
@@ -43,6 +43,15 @@ The configuration should be placed in the following paths depending by the opera
|
|||||||
* **Windows** - `%APPDATA%/topgrade.toml`
|
* **Windows** - `%APPDATA%/topgrade.toml`
|
||||||
* **macOS** and **other Unix systems** - `${XDG_CONFIG_HOME:-~/.config}/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
|
## Remote execution
|
||||||
You can specify a key called `remote_topgrades` in the configuration file.
|
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.
|
This key should contain a list of hostnames that have topgrade installed on them.
|
||||||
|
|||||||
43
build-all.sh
Executable file
43
build-all.sh
Executable 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
|
||||||
Reference in New Issue
Block a user