Skip to content

Commit

Permalink
Update apart-core to 0.3.10, release 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Mar 27, 2021
1 parent 4e1536f commit 8bfcc22
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apart-core
2 changes: 1 addition & 1 deletion aur
Submodule aur updated from 283d3c to a843ba
4 changes: 2 additions & 2 deletions build-dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ while test $# -gt 0; do
esac
done

APART_CORE_VERSION="0.3.9"
APART_CORE_SHA256='58bc9ce02cd117e6544c6826ff147bc77b9bbe973501ca6e13f5a8de3c70b455'
APART_CORE_VERSION="0.3.10"
APART_CORE_SHA256='32c5c58209ad6cab7bb7bc84c139782ada7f42fb68d95c46d69e72735d2b2e3c'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

cd "$DIR"
Expand Down
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from gi.repository import GLib, Gtk, Gdk

# App versions, "major.minor", major => new stuff, minor => fixes
__version__ = '0.24'
__version__ = '0.25'


class LoadingBody(Gtk.Grid):
Expand Down
12 changes: 6 additions & 6 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ set -eu
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# run doctests
python -m doctest $dir/src/*.py
python -m doctest "$dir"/src/*.py

(cd $dir/apart-core && cargo build)
(cd "$dir"/apart-core && cargo build)

now=$(date +%Y-%m-%dT%H)
if [ -f ~/.config/apart-gtk/history.yaml ] && [ ! -f $dir/history-backup-$now.yaml ]; then
if [ -f ~/.config/apart-gtk/history.yaml ] && [ ! -f "$dir/history-backup-$now.yaml" ]; then
echo "Backing up ~/.config/apart-gtk/history.yaml -> history-backup-$now.yaml"
cp ~/.config/apart-gtk/history.yaml $dir/history-backup-$now.yaml
cp ~/.config/apart-gtk/history.yaml "$dir/history-backup-$now.yaml"
fi

RUST_BACKTRACE=full \
APART_GTK_CORE_CMD=$dir/apart-core/target/debug/apart-core \
APART_GTK_CORE_CMD="$dir/apart-core/target/debug/apart-core" \
RUST_LOG=info \
$dir/src/app.py
"$dir/src/app.py"
16 changes: 8 additions & 8 deletions start-test-app
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ set -eu
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# run doctests
python -m doctest $dir/src/*.py
python -m doctest "$dir"/src/*.py

(cd $dir/apart-core && cargo build)
(cd "$dir"/apart-core && cargo build)

now=$(date +%Y-%m-%dT%H)
if [ -f ~/.config/apart-gtk/history.yaml ] && [ ! -f $dir/history-backup-$now.yaml ]; then
if [ -f ~/.config/apart-gtk/history.yaml ] && [ ! -f "$dir/history-backup-$now.yaml" ]; then
echo "Backing up ~/.config/apart-gtk/history.yaml -> history-backup-$now.yaml"
cp ~/.config/apart-gtk/history.yaml $dir/history-backup-$now.yaml
cp ~/.config/apart-gtk/history.yaml "$dir/history-backup-$now.yaml"
fi

RUST_BACKTRACE=full \
APART_PARTCLONE_CMD=$dir/test/mockpcl \
APART_GTK_CORE_CMD=$dir/apart-core/target/debug/apart-core \
APART_PARTCLONE_CMD="$dir/test/mockpcl" \
APART_GTK_CORE_CMD="$dir/apart-core/target/debug/apart-core" \
RUST_LOG=info \
APART_LSBLK_CMD=$dir/test/mocklsblk \
$dir/src/app.py
APART_LSBLK_CMD="$dir/test/mocklsblk" \
"$dir/src/app.py"

0 comments on commit 8bfcc22

Please sign in to comment.