jahway603
11 months ago
27 changed files with 96 additions and 33 deletions
@ -0,0 +1,22 @@ |
|||||
|
// Copyright (c) 2019-2023 Duke Leto and The Hush developers
|
||||
|
// Copyright (c) 2019-2020 The Zcash developers
|
||||
|
// Distributed under the GPLv3 software license
|
||||
|
package cmd |
||||
|
|
||||
|
import ( |
||||
|
"testing" |
||||
|
) |
||||
|
|
||||
|
func TestFileExists(t *testing.T) { |
||||
|
if fileExists("nonexistent-file") { |
||||
|
t.Fatal("fileExists unexpected success") |
||||
|
} |
||||
|
// If the path exists but is a directory, should return false
|
||||
|
if fileExists(".") { |
||||
|
t.Fatal("fileExists unexpected success") |
||||
|
} |
||||
|
// The following file should exist, it's what's being tested
|
||||
|
if !fileExists("root.go") { |
||||
|
t.Fatal("fileExists failed") |
||||
|
} |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
#!/usr/bin/env bash |
||||
|
# Copyright 2021-2023 Duke Leto and The Hush Developers |
||||
|
# Distributed under the GPLv3 software license, see the accompanying |
||||
|
# file LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html |
||||
|
# Purpose: To process a release for a new version of lightwalletd |
||||
|
|
||||
|
# *** Run with *** |
||||
|
# ./util/RELEASE-new-version.sh 0.1.3 |
||||
|
# *** the above 0.1.3 is the version number you're building *** |
||||
|
|
||||
|
VERSION=$1 |
||||
|
readonly VERSION |
||||
|
sed -i "s/0.1.3/$VERSION/g" util/build-debian-package.sh |
||||
|
sed -i "s/0.1.3/$VERSION/g" util/build-debian-package-SBC.sh |
||||
|
sed -i "s/0.1.3/$VERSION/g" common/common.go |
||||
|
sed -i "s/0.1.3/$VERSION/g" doc/man/lightwalletd.1 |
||||
|
|
||||
|
set -e |
||||
|
|
||||
|
echo "" |
||||
|
echo "Let's build new release $VERSION of lightwalletd..." |
||||
|
echo "" |
||||
|
echo "" |
||||
|
echo "Building x86 binary" |
||||
|
make build |
||||
|
echo "Building x86 Debian package" |
||||
|
./util/build-debian-package.sh |
||||
|
echo "lightwalletd $VERSION x86 is done... now to build ARM..." |
||||
|
|
||||
|
# TO-DO: automate ARM deb pkg build |
||||
|
#echo "" |
||||
|
#echo "Building ARM binary" |
||||
|
#make build-arm |
||||
|
#./util/build-debian-package-SBC.sh |
||||
|
#rm lightwalletd |
||||
|
# |
||||
|
echo "ALL DONE FOR lightwalletd $VERSION release" |
Loading…
Reference in new issue