mirror of
https://github.com/veeso/termscp.git
synced 2026-07-27 18:11:06 +02:00
fix: removed support for RPM
This commit is contained in:
10
dist/build/linux-aarch64.sh
vendored
10
dist/build/linux-aarch64.sh
vendored
@@ -21,7 +21,6 @@ fi
|
|||||||
|
|
||||||
# names
|
# names
|
||||||
ARM64_DEB_NAME="termscp-arm64_deb"
|
ARM64_DEB_NAME="termscp-arm64_deb"
|
||||||
ARM64_RPM_NAME="termscp-arm64_rpm"
|
|
||||||
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
|
||||||
@@ -49,14 +48,5 @@ tar cvzf termscp-v${VERSION}-aarch64-unknown-linux-gnu.tar.gz termscp
|
|||||||
echo "Sha256 (homebrew aarch64): $(sha256sum termscp-v${VERSION}-aarch64-unknown-linux-gnu.tar.gz)"
|
echo "Sha256 (homebrew aarch64): $(sha256sum termscp-v${VERSION}-aarch64-unknown-linux-gnu.tar.gz)"
|
||||||
rm termscp
|
rm termscp
|
||||||
cd -
|
cd -
|
||||||
# Build aarch64_centos7
|
|
||||||
cd aarch64_centos7/
|
|
||||||
docker buildx build --platform linux/arm64 $CACHE --build-arg branch=${BRANCH} --tag $ARM64_RPM_NAME .
|
|
||||||
cd -
|
|
||||||
mkdir -p ${PKGS_DIR}/rpm/
|
|
||||||
docker run --name "$ARM64_RPM_NAME" -d "$ARM64_RPM_NAME" || docker start "$ARM64_RPM_NAME"
|
|
||||||
docker exec -it "$ARM64_RPM_NAME" bash -c ". \$HOME/.cargo/env && git fetch origin && git checkout origin/$BRANCH; cargo rpm init; cargo rpm build"
|
|
||||||
docker cp ${ARM64_RPM_NAME}:/usr/src/termscp/target/release/rpmbuild/RPMS/aarch64/termscp-${VERSION}-1.el7.aarch64.rpm ${PKGS_DIR}/rpm/termscp-${VERSION}-1.aarch64.rpm
|
|
||||||
docker stop "$ARM64_RPM_NAME"
|
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
10
dist/build/linux-x86_64.sh
vendored
10
dist/build/linux-x86_64.sh
vendored
@@ -21,7 +21,6 @@ fi
|
|||||||
|
|
||||||
# names
|
# names
|
||||||
X86_64_DEB_NAME="termscp-x86_64_deb"
|
X86_64_DEB_NAME="termscp-x86_64_deb"
|
||||||
X86_64_RPM_NAME="termscp-x86_64_rpm"
|
|
||||||
|
|
||||||
set -e # Don't fail
|
set -e # Don't fail
|
||||||
|
|
||||||
@@ -47,14 +46,5 @@ tar cvzf termscp-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz termscp
|
|||||||
echo "Sha256 x86_64 (homebrew): $(sha256sum termscp-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz)"
|
echo "Sha256 x86_64 (homebrew): $(sha256sum termscp-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz)"
|
||||||
rm termscp
|
rm termscp
|
||||||
cd -
|
cd -
|
||||||
# Build x86_64_centos7
|
|
||||||
cd x86_64_centos7/
|
|
||||||
docker build $CACHE --build-arg branch=${BRANCH} --tag "$X86_64_RPM_NAME" .
|
|
||||||
cd -
|
|
||||||
mkdir -p ${PKGS_DIR}/rpm/
|
|
||||||
docker run --name "$X86_64_RPM_NAME" -d "$X86_64_RPM_NAME" || docker start "$X86_64_RPM_NAME"
|
|
||||||
docker exec -it "$X86_64_RPM_NAME" bash -c ". \$HOME/.cargo/env && git fetch origin && git checkout origin/$BRANCH; cargo rpm init; cargo rpm build"
|
|
||||||
docker cp ${X86_64_RPM_NAME}:/usr/src/termscp/target/release/rpmbuild/RPMS/x86_64/termscp-${VERSION}-1.el7.x86_64.rpm ${PKGS_DIR}/rpm/termscp-${VERSION}-1.x86_64.rpm
|
|
||||||
docker stop "$X86_64_RPM_NAME"
|
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
27
install.sh
27
install.sh
@@ -12,8 +12,6 @@ TERMSCP_VERSION="0.13.0"
|
|||||||
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
||||||
DEB_URL_AMD64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
DEB_URL_AMD64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
||||||
DEB_URL_AARCH64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_arm64.deb"
|
DEB_URL_AARCH64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_arm64.deb"
|
||||||
RPM_URL_AMD64="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.x86_64.rpm"
|
|
||||||
RPM_URL_AARCH64="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.aarch64.rpm"
|
|
||||||
|
|
||||||
PATH="$PATH:/usr/sbin"
|
PATH="$PATH:/usr/sbin"
|
||||||
|
|
||||||
@@ -37,8 +35,6 @@ set_termscp_version() {
|
|||||||
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
||||||
DEB_URL_AMD64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
DEB_URL_AMD64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
||||||
DEB_URL_AARCH64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_arm64.deb"
|
DEB_URL_AARCH64="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_arm64.deb"
|
||||||
RPM_URL_AMD64="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.x86_64.rpm"
|
|
||||||
RPM_URL_AARCH64="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.aarch64.rpm"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
@@ -262,29 +258,6 @@ install_on_linux() {
|
|||||||
info "$msg"
|
info "$msg"
|
||||||
$sudo dpkg -i "${archive}"
|
$sudo dpkg -i "${archive}"
|
||||||
rm -f ${archive}
|
rm -f ${archive}
|
||||||
elif has rpm; then
|
|
||||||
case "${ARCH}" in
|
|
||||||
x86_64) RPM_URL="$RPM_URL_AMD64" ;;
|
|
||||||
aarch64) RPM_URL="$RPM_URL_AARCH64" ;;
|
|
||||||
*) try_with_cargo "we don't distribute packages for ${ARCH} at the moment" && return $? ;;
|
|
||||||
esac
|
|
||||||
info "Detected rpm on your system"
|
|
||||||
info "Installing ${GREEN}termscp${NO_COLOR} via RPM package"
|
|
||||||
archive=$(get_tmpfile "rpm")
|
|
||||||
download "${archive}" "${RPM_URL}"
|
|
||||||
info "Downloaded rpm package to ${archive}"
|
|
||||||
if test_writeable "/usr/bin"; then
|
|
||||||
sudo=""
|
|
||||||
msg="Installing ${GREEN}termscp${NO_COLOR}, please wait…"
|
|
||||||
else
|
|
||||||
warn "Root permissions are required to install ${GREEN}termscp${NO_COLOR}…"
|
|
||||||
elevate_priv
|
|
||||||
sudo="sudo"
|
|
||||||
msg="Installing ${GREEN}termscp${NO_COLOR} as root, please wait…"
|
|
||||||
fi
|
|
||||||
info "$msg"
|
|
||||||
$sudo rpm -U "${archive}"
|
|
||||||
rm -f ${archive}
|
|
||||||
elif has brew; then
|
elif has brew; then
|
||||||
install_with_brew
|
install_with_brew
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -81,14 +81,6 @@ sudo <span class="function">dpkg</span> -i <span class="string">termscp.deb</spa
|
|||||||
<i class="devicon-redhat-plain"></i> <span translate="getStarted.redhat.title">Redhat derived
|
<i class="devicon-redhat-plain"></i> <span translate="getStarted.redhat.title">Redhat derived
|
||||||
users</span>
|
users</span>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="installation">
|
|
||||||
<p translate="getStarted.redhat.body">
|
|
||||||
On RedHat based distros, you can install termscp using the RPM
|
|
||||||
package via:
|
|
||||||
</p>
|
|
||||||
<pre><span class="function">wget</span> -O termscp.rpm <span class="string">https://github.com/veeso/termscp/releases/latest/download/termscp-0.13.0-1.x86_64.rpm</span>
|
|
||||||
sudo <span class="function">rpm</span> -U <span class="string">termscp.rpm</span></pre>
|
|
||||||
</div>
|
|
||||||
<h3>
|
<h3>
|
||||||
<span>Brew</span>
|
<span>Brew</span>
|
||||||
</h3>
|
</h3>
|
||||||
@@ -169,4 +161,4 @@ sudo <span class="function">rpm</span> -U <span class="string">termscp.rpm</span
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="css/updates.css" />
|
<link rel="stylesheet" href="css/updates.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<section id="updates" class="flex flex-col mx-auto items-center justify-center w-full px-12 gap-8 dark:text-gray-100">
|
<section id="updates" class="flex flex-col mx-auto items-center justify-center w-full px-12 gap-8 dark:text-gray-100">
|
||||||
<h1 translate="updates.title" class="text-3xl font-thin">Keeping termscp up to date</h1>
|
<h1 translate="updates.title" class="text-3xl font-thin">Keeping termscp up to date</h1>
|
||||||
@@ -8,7 +9,7 @@
|
|||||||
<section>
|
<section>
|
||||||
<h2 class="text-2xl font-thin">
|
<h2 class="text-2xl font-thin">
|
||||||
<i class="fa fa-question-circle"></i> <span translate="updates.reasons.title">Why should you install
|
<i class="fa fa-question-circle"></i> <span translate="updates.reasons.title">Why should you install
|
||||||
updates</span>
|
updates</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="wall-of-text">
|
<div class="wall-of-text">
|
||||||
<p translate="updates.reasons.wallOfText" class="text-gray-700 dark:text-gray-300">
|
<p translate="updates.reasons.wallOfText" class="text-gray-700 dark:text-gray-300">
|
||||||
@@ -41,7 +42,8 @@
|
|||||||
</section>
|
</section>
|
||||||
<!-- Gui method -->
|
<!-- Gui method -->
|
||||||
<section>
|
<section>
|
||||||
<h2 class="text-2xl font-thin"><i class="fa fa-desktop"></i> <span translate="updates.gui.title">GUI method</span></h2>
|
<h2 class="text-2xl font-thin"><i class="fa fa-desktop"></i> <span translate="updates.gui.title">GUI
|
||||||
|
method</span></h2>
|
||||||
<div class="installation">
|
<div class="installation">
|
||||||
<p translate="updates.gui.body" class="text-gray-700 dark:text-gray-300">
|
<p translate="updates.gui.body" class="text-gray-700 dark:text-gray-300">
|
||||||
The GUI method just consists in starting termscp with no options, you
|
The GUI method just consists in starting termscp with no options, you
|
||||||
@@ -64,8 +66,8 @@
|
|||||||
<p>
|
<p>
|
||||||
<i class="fas fa-exclamation-triangle"></i>
|
<i class="fas fa-exclamation-triangle"></i>
|
||||||
<span translate="updates.gui.pex">
|
<span translate="updates.gui.pex">
|
||||||
If you have previously installed termscp via Deb/RPM package, you
|
If you have previously installed termscp via Deb package, you
|
||||||
may need to use the CLI method running termscp with sudo
|
may need to use the CLI method running termscp with sudo
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,7 +75,8 @@
|
|||||||
</section>
|
</section>
|
||||||
<!-- CLI method -->
|
<!-- CLI method -->
|
||||||
<section>
|
<section>
|
||||||
<h2 class="text-2xl font-thin"><i class="fa fa-glasses"></i> <span translate="updates.cli.title">CLI method</span></h2>
|
<h2 class="text-2xl font-thin"><i class="fa fa-glasses"></i> <span translate="updates.cli.title">CLI
|
||||||
|
method</span></h2>
|
||||||
<div class="installation">
|
<div class="installation">
|
||||||
<p translate="updates.cli.body" class="text-gray-700 dark:text-gray-300">
|
<p translate="updates.cli.body" class="text-gray-700 dark:text-gray-300">
|
||||||
If you prefer, you can install a new update just using the dedicated
|
If you prefer, you can install a new update just using the dedicated
|
||||||
@@ -94,4 +97,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
Reference in New Issue
Block a user