2024-02-16 18:03:19 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
##
|
|
|
|
## SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
python_dir="/usr/lib/python3/dist-packages"
|
|
|
|
bin_dir="/usr/bin"
|
|
|
|
app_dir="/usr/share/applications"
|
|
|
|
tmp_dir="/tmp/electrum-upload"
|
|
|
|
|
2024-08-06 11:04:16 -04:00
|
|
|
rm -rf -- "${tmp_dir}"
|
|
|
|
mkdir -p -- "${tmp_dir}"
|
2024-02-16 18:03:19 -05:00
|
|
|
qfile-unpacker 0 "${tmp_dir}"
|
|
|
|
cd "${tmp_dir}"
|
2024-08-06 11:04:16 -04:00
|
|
|
cp -r -- electrum "${python_dir}"/
|
|
|
|
cp -- electrum.desktop "${app_dir}"/
|
|
|
|
cp -- run_electrum "${bin_dir}"/electrum
|
2024-02-16 18:03:19 -05:00
|
|
|
|
|
|
|
## Qube needs to shutdown for the app qube to have the uploaded files.
|
|
|
|
shutdown now
|