contrib: rename some shell scripts to have ".sh" extension

The extension gives formatting hints to some editors. (especially if they support .editorconfig)
This commit is contained in:
SomberNight
2022-09-27 13:34:03 +00:00
parent f174b9164c
commit 1cecd2c6e8
11 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -177,7 +177,7 @@ task:
cpu: 2
memory: 2G
build_script:
- ./contrib/android/make_apk kivy arm64-v8a debug
- ./contrib/android/make_apk.sh kivy arm64-v8a debug
binaries_artifacts:
path: "dist/*"
@@ -190,7 +190,7 @@ task:
install_script:
- git fetch --all --tags
build_script:
- ./contrib/osx/make_osx
- ./contrib/osx/make_osx.sh
sum_script:
- ls -lah dist
- shasum -a 256 dist/*.dmg
+1 -1
View File
@@ -8,7 +8,7 @@
# - BUILDER creates a PR against https://github.com/spesmilo/electrum-signatures/
# to add their sigs for a given release, which then gets merged
# - SFTPUSER runs `$ electrum/contrib/add_cosigner $BUILDER`
# - SFTPUSER runs `$ SSHUSER=$SFTPUSER electrum/contrib/upload`
# - SFTPUSER runs `$ SSHUSER=$SFTPUSER electrum/contrib/upload.sh`
# - SFTPUSER runs `$ electrum/contrib/make_download $WWW_DIR`
# - $ (cd $WWW_DIR; git commit -a -m "add_cosigner"; git push)
# - SFTPUSER runs `$ electrum-web/publish.sh $SFTPUSER`
+2 -2
View File
@@ -40,7 +40,7 @@ repository.
Make sure you don't build in `debug` mode,
instead use either of `release` or `release-unsigned`.
If you build in `release` mode, the apk will be signed, which requires a keystore
that you need to create manually (see source of `make_apk` for an example).
that you need to create manually (see source of `make_apk.sh` for an example).
2. Note that the binaries are not going to be byte-for-byte identical, as the official
release is signed by a keystore that only the project maintainers have.
You can use the `apkdiff.py` python script (written by the Signal developers) to compare
@@ -102,7 +102,7 @@ If you just follow the instructions above, you will build the apk
in debug mode. The most notable difference is that the apk will be
signed using a debug keystore. If you are planning to upload
what you build to e.g. the Play Store, you should create your own
keystore, back it up safely, and run `./contrib/make_apk release`.
keystore, back it up safely, and run `./contrib/make_apk.sh release`.
See e.g. [kivy wiki](https://github.com/kivy/kivy/wiki/Creating-a-Release-APK)
and [android dev docs](https://developer.android.com/studio/build/building-cmdline#sign_cmdline).
+1 -1
View File
@@ -74,7 +74,7 @@ docker run -it --rm \
$DOCKER_RUN_FLAGS \
--workdir /home/user/wspace/electrum \
electrum-android-builder-img \
./contrib/android/make_apk "$@"
./contrib/android/make_apk.sh "$@"
# make sure resulting binary location is independent of fresh_clone
if [ ! -z "$ELECBUILD_COMMIT" ] ; then
@@ -15,7 +15,7 @@ LOCALE="$PROJECT_ROOT"/electrum/locale/
export ELEC_APK_GUI=$1
if [ ! -d "$PACKAGES" ]; then
"$CONTRIB"/make_packages || fail "make_packages failed"
"$CONTRIB"/make_packages.sh || fail "make_packages failed"
fi
pushd "$PROJECT_ROOT"
+2 -2
View File
@@ -16,12 +16,12 @@ python3 --version || fail "python interpreter not found"
break_legacy_easy_install
# upgrade to modern pip so that it knows the flags we need.
# (make_packages will later install a pinned version of pip in a venv)
# (make_packages.sh will later install a pinned version of pip in a venv)
python3 -m pip install --upgrade pip
rm -rf "$PROJECT_ROOT/packages/"
if ([ "$OMIT_UNCLEAN_FILES" != 1 ]); then
"$CONTRIB"/make_packages || fail "make_packages failed"
"$CONTRIB"/make_packages.sh || fail "make_packages failed"
fi
git submodule update --init
+3 -3
View File
@@ -103,17 +103,17 @@ $ hdiutil detach "/Volumes/Command Line Developer Tools"
#### 2. Build Electrum
cd electrum
./contrib/osx/make_osx
./contrib/osx/make_osx.sh
This creates both a folder named Electrum.app and the .dmg file.
If you want the binaries codesigned for MacOS and notarised by Apple's central server,
provide these env vars to the `make_osx` script:
provide these env vars to the `make_osx.sh` script:
CODESIGN_CERT="Developer ID Application: Electrum Technologies GmbH (L6P37P7P56)" \
APPLE_ID_USER="me@email.com" \
APPLE_ID_PASSWORD="1234" \
./contrib/osx/make_osx
./contrib/osx/make_osx.sh
## Verifying reproducibility and comparing against official binary
+2 -2
View File
@@ -240,7 +240,7 @@ if [ -z "$RELEASEMANAGER" ] ; then
gpg --sign --armor --detach $PUBKEY --output "$PROJECT_ROOT/dist/sigs/$signame" "$fname"
done
# upload sigs
ELECBUILD_UPLOADFROM="$PROJECT_ROOT/dist/sigs/" "$CONTRIB/upload"
ELECBUILD_UPLOADFROM="$PROJECT_ROOT/dist/sigs/" "$CONTRIB/upload.sh"
else
# ONLY release manager
@@ -262,7 +262,7 @@ else
if test -f dist/uploaded; then
info "files already uploaded"
else
./contrib/upload
./contrib/upload.sh
touch dist/uploaded
fi