Skip to content

Commit

Permalink
UI nits (#162)
Browse files Browse the repository at this point in the history
* try patch macos dylib issue

* try one dir level up

* patch

* assume dylib path ./ means src-tauri

* add all mac gmp libs

* update tauri rust deps

* ci build

* update libra-types

* bump version

* test release profile

* language

* creating file in wrong order.

* try patch macos dylib issue

* add all mac gmp libs

* update libra-types

* bump version

* language

* creating file in wrong order.

* update  to libra 6.9.0-rc.7

* patch cargo lock

* update cargo lock

* bump version

* update cargo.lock

* scaffold account deletion

* remove prepended 0s from account view

* patch

* patch account display

* format accounts

* patch transfer issues. Confirm migration can reuse old keys

* lint

* macOs replace vcpkg build libgmp for homebrew

* patch-ui issues in account creation

* test release with homebrew

* remove dylib files

* update libra version

* patch mac release

* try brew paths for gmp

* try different toolchains macos release

* try only aarch64-apple-darwin

* typo

* again

* try --target universal-apple-darwin

* Squashed commit of the following:

commit ef1f977
Author: 0o-de-lally <>
Date:   Wed Nov 22 14:30:54 2023 -0500

    caching

commit da802e6
Author: 0o-de-lally <>
Date:   Wed Nov 22 14:05:32 2023 -0500

    try again

commit 280fa62
Author: 0o-de-lally <>
Date:   Wed Nov 22 13:36:09 2023 -0500

    try tauri publish with env

commit 2a7d944
Author: 0o-de-lally <>
Date:   Wed Nov 22 13:13:05 2023 -0500

    try fix envvar

commit b8f7b95
Author: 0o-de-lally <>
Date:   Wed Nov 22 12:50:42 2023 -0500

    set env

commit 42b473d
Author: 0o-de-lally <>
Date:   Wed Nov 22 12:39:03 2023 -0500

    debug

commit b7149dc
Author: 0o-de-lally <>
Date:   Wed Nov 22 12:30:55 2023 -0500

    try llvm on m1

commit f762707
Author: 0o-de-lally <>
Date:   Wed Nov 22 12:14:46 2023 -0500

    try setting library path

commit 25e16a1
Author: 0o-de-lally <>
Date:   Wed Nov 22 11:58:31 2023 -0500

    patch runner name

commit f5b55ad
Author: 0o-de-lally <>
Date:   Wed Nov 22 11:56:56 2023 -0500

    update conf.json

commit 4d416f1
Author: 0o-de-lally <>
Date:   Wed Nov 22 11:22:11 2023 -0500

    testing m1 build

commit 52b7fbb
Author: 0o-de-lally <>
Date:   Wed Nov 22 10:38:51 2023 -0500

     create universal profile

commit dd492ea
Author: 0o-de-lally <>
Date:   Sun Nov 19 22:49:21 2023 -0500

    try universal build target

commit 149d1a3
Author: 0o-de-lally <>
Date:   Sun Nov 19 22:46:17 2023 -0500

    try setting release

commit 6934488
Author: 0o-de-lally <>
Date:   Sun Nov 19 22:42:51 2023 -0500

    update framework paths in tauri

commit 029568c
Author: 0o-de-lally <[email protected]>
Date:   Sun Nov 19 15:37:39 2023 -0500

    remove vendor dylib files from root

commit 82721d1
Author: 0o-de-lally <[email protected]>
Date:   Sun Nov 19 14:38:33 2023 -0500

    test use brew gmp

commit 8b32706
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:15:31 2023 -0500

    try running brew gmp first

commit 356b6f4
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:14:28 2023 -0500

    bump version

commit e96bd9d
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:14:02 2023 -0500

    try build on Mac M1 github runner

commit 6ec5699
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:11:35 2023 -0500

    bump version

commit 289f999
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:10:17 2023 -0500

    bump version

commit c280e5a
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:09:48 2023 -0500

    add M1 built libgmp

commit 382ad2a
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:09:33 2023 -0500

    bump version

commit 24ebe8c
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 22:09:14 2023 -0500

    build all canary branches

* revert changes release.yaml

* patch nav and info when account doesn't exist

* patch issue of account always being on_chain=true. minor ui fixes

* fmt

* Squashed commit of the following:

commit b4812a2
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 22 16:46:20 2023 -0500

    Misc patches (#160)

    * try patch macos dylib issue

    * try one dir level up

    * patch

    * assume dylib path ./ means src-tauri

    * add all mac gmp libs

    * update tauri rust deps

    * ci build

    * update libra-types

    * bump version

    * test release profile

    * language

    * creating file in wrong order.

    * try patch macos dylib issue

    * add all mac gmp libs

    * update libra-types

    * bump version

    * language

    * creating file in wrong order.

    * update  to libra 6.9.0-rc.7

    * patch cargo lock

    * update cargo lock

    * bump version

    * update cargo.lock

    * scaffold account deletion

    * remove prepended 0s from account view

    * patch

    * patch account display

    * format accounts

    * patch transfer issues. Confirm migration can reuse old keys

    * lint

    * macOs replace vcpkg build libgmp for homebrew

    * patch-ui issues in account creation

* Squashed commit of the following:

commit 625dfc4
Author: 0o-de-lally <>
Date:   Wed Nov 22 16:53:27 2023 -0500

    Squashed commit of the following:

    commit b4812a2
    Author: 0o-de-lally <[email protected]>
    Date:   Wed Nov 22 16:46:20 2023 -0500

        Misc patches (#160)

        * try patch macos dylib issue

        * try one dir level up

        * patch

        * assume dylib path ./ means src-tauri

        * add all mac gmp libs

        * update tauri rust deps

        * ci build

        * update libra-types

        * bump version

        * test release profile

        * language

        * creating file in wrong order.

        * try patch macos dylib issue

        * add all mac gmp libs

        * update libra-types

        * bump version

        * language

        * creating file in wrong order.

        * update  to libra 6.9.0-rc.7

        * patch cargo lock

        * update cargo lock

        * bump version

        * update cargo.lock

        * scaffold account deletion

        * remove prepended 0s from account view

        * patch

        * patch account display

        * format accounts

        * patch transfer issues. Confirm migration can reuse old keys

        * lint

        * macOs replace vcpkg build libgmp for homebrew

        * patch-ui issues in account creation

commit c46ca57
Author: 0o-de-lally <>
Date:   Wed Nov 22 16:52:31 2023 -0500

    fmt

commit c108bc8
Author: 0o-de-lally <>
Date:   Wed Nov 22 16:45:37 2023 -0500

    patch issue of account always being on_chain=true. minor ui fixes

commit 636722f
Author: 0o-de-lally <>
Date:   Wed Nov 22 16:01:12 2023 -0500

    patch nav and info when account doesn't exist

commit 6edc3dc
Author: 0o-de-lally <>
Date:   Wed Nov 22 14:37:43 2023 -0500

    revert changes release.yaml

commit e2d3046
Author: 0o-de-lally <>
Date:   Wed Nov 22 14:33:20 2023 -0500

    Squashed commit of the following:

    commit ef1f977
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 14:30:54 2023 -0500

        caching

    commit da802e6
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 14:05:32 2023 -0500

        try again

    commit 280fa62
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 13:36:09 2023 -0500

        try tauri publish with env

    commit 2a7d944
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 13:13:05 2023 -0500

        try fix envvar

    commit b8f7b95
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 12:50:42 2023 -0500

        set env

    commit 42b473d
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 12:39:03 2023 -0500

        debug

    commit b7149dc
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 12:30:55 2023 -0500

        try llvm on m1

    commit f762707
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 12:14:46 2023 -0500

        try setting library path

    commit 25e16a1
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 11:58:31 2023 -0500

        patch runner name

    commit f5b55ad
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 11:56:56 2023 -0500

        update conf.json

    commit 4d416f1
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 11:22:11 2023 -0500

        testing m1 build

    commit 52b7fbb
    Author: 0o-de-lally <>
    Date:   Wed Nov 22 10:38:51 2023 -0500

         create universal profile

    commit dd492ea
    Author: 0o-de-lally <>
    Date:   Sun Nov 19 22:49:21 2023 -0500

        try universal build target

    commit 149d1a3
    Author: 0o-de-lally <>
    Date:   Sun Nov 19 22:46:17 2023 -0500

        try setting release

    commit 6934488
    Author: 0o-de-lally <>
    Date:   Sun Nov 19 22:42:51 2023 -0500

        update framework paths in tauri

    commit 029568c
    Author: 0o-de-lally <[email protected]>
    Date:   Sun Nov 19 15:37:39 2023 -0500

        remove vendor dylib files from root

    commit 82721d1
    Author: 0o-de-lally <[email protected]>
    Date:   Sun Nov 19 14:38:33 2023 -0500

        test use brew gmp

    commit 8b32706
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:15:31 2023 -0500

        try running brew gmp first

    commit 356b6f4
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:14:28 2023 -0500

        bump version

    commit e96bd9d
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:14:02 2023 -0500

        try build on Mac M1 github runner

    commit 6ec5699
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:11:35 2023 -0500

        bump version

    commit 289f999
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:10:17 2023 -0500

        bump version

    commit c280e5a
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:09:48 2023 -0500

        add M1 built libgmp

    commit 382ad2a
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:09:33 2023 -0500

        bump version

    commit 24ebe8c
    Author: 0o-de-lally <[email protected]>
    Date:   Thu Nov 16 22:09:14 2023 -0500

        build all canary branches

commit 8234a97
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 21:45:54 2023 -0500

    try --target universal-apple-darwin

commit 2f19b19
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 20:16:38 2023 -0500

    again

commit 5b8573b
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 20:14:39 2023 -0500

    typo

commit c07b4ac
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 20:12:58 2023 -0500

    try only aarch64-apple-darwin

commit 52f802f
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 20:11:45 2023 -0500

    try different toolchains macos release

commit 5736ac8
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 20:02:02 2023 -0500

    try brew paths for gmp

commit a1936fc
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 19:48:36 2023 -0500

    patch mac release

commit cbb7932
Author: 0o-de-lally <[email protected]>
Date:   Tue Nov 21 17:41:37 2023 -0500

    update libra version

commit 1646781
Author: 0o-de-lally <>
Date:   Sun Nov 19 23:15:45 2023 -0500

    remove dylib files

commit ba487ef
Author: 0o-de-lally <>
Date:   Sun Nov 19 23:14:15 2023 -0500

    test release with homebrew

commit 5eee590
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 19:45:21 2023 -0500

    patch-ui issues in account creation

commit 11daac0
Author: 0o-de-lally <[email protected]>
Date:   Thu Nov 16 17:11:23 2023 -0500

    macOs replace vcpkg build libgmp for homebrew

commit e8372a6
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:43:57 2023 -0500

    lint

commit 82bcaed
Merge: de2bafb 8f53303
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:42:17 2023 -0500

    Merge branch 'misc-patches' into canary

commit 8f53303
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:41:10 2023 -0500

    patch transfer issues. Confirm migration can reuse old keys

commit 283fac5
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:21:58 2023 -0500

    format accounts

commit 904b932
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:13:15 2023 -0500

    patch account display

commit 924df4a
Merge: f570711 f7ec081
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:06:16 2023 -0500

    Merge branch 'main' into misc-patches

commit f570711
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 17:04:48 2023 -0500

    patch

commit ad317dc
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:50:27 2023 -0500

    remove prepended 0s from account view

commit 5550644
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:45:36 2023 -0500

    scaffold account deletion

commit c225085
Merge: 71f9a42 ab60cbb
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:33:11 2023 -0500

    Merge branch 'main' into fix-win-install

commit 71f9a42
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:31:34 2023 -0500

    update cargo.lock

commit de2bafb
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:21:05 2023 -0500

    bump version

commit f0d7ff0
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 15 16:20:28 2023 -0500

    update cargo lock

commit 93c32cd
Author: 0o-de-lally <[email protected]>
Date:   Fri Nov 10 12:30:30 2023 -0500

    patch cargo lock

commit ac95f75
Author: 0o-de-lally <[email protected]>
Date:   Fri Nov 10 12:05:32 2023 -0500

    update  to libra 6.9.0-rc.7

commit b0e24b9
Author: 0o-de-lally <[email protected]>
Date:   Fri Nov 3 16:37:40 2023 -0400

    creating file in wrong order.

commit 1dfc1b5
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 20:40:14 2023 -0400

    language

commit cd1826b
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 20:06:57 2023 -0400

    bump version

commit 8a89a92
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 18:33:55 2023 -0400

    update libra-types

commit 1aa8ae2
Author: 0o-de-lally <[email protected]>
Date:   Mon Oct 30 14:00:56 2023 -0400

    add all mac gmp libs

commit a0e8a76
Author: 0o-de-lally <[email protected]>
Date:   Sat Oct 28 14:35:16 2023 -0400

    try patch macos dylib issue

commit 23de833
Author: 0o-de-lally <[email protected]>
Date:   Fri Nov 3 16:37:40 2023 -0400

    creating file in wrong order.

commit 3b29574
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 20:40:14 2023 -0400

    language

commit 93b73c4
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 20:12:08 2023 -0400

    test release profile

commit 24b2b56
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 20:06:57 2023 -0400

    bump version

commit be033d4
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 18:33:55 2023 -0400

    update libra-types

commit c92a303
Author: 0o-de-lally <[email protected]>
Date:   Wed Nov 1 18:22:30 2023 -0400

    ci build

commit f8d91b9
Author: 0o-de-lally <[email protected]>
Date:   Mon Oct 30 15:30:52 2023 -0400

    update tauri rust deps

commit 1b6e226
Author: 0o-de-lally <[email protected]>
Date:   Mon Oct 30 14:00:56 2023 -0400

    add all mac gmp libs

commit 80ff1e8
Author: 0o-de-lally <[email protected]>
Date:   Sun Oct 29 15:03:51 2023 -0400

    assume dylib path ./ means src-tauri

commit 893ad88
Author: 0o-de-lally <[email protected]>
Date:   Sat Oct 28 15:05:56 2023 -0400

    patch

commit 3f12038
Author: 0o-de-lally <[email protected]>
Date:   Sat Oct 28 15:04:22 2023 -0400

    try one dir level up

commit 2e5eb55
Author: 0o-de-lally <[email protected]>
Date:   Sat Oct 28 14:35:16 2023 -0400

    try patch macos dylib issue

* release

* clippy

* fmt

* force CI

---------

Co-authored-by: 0o-de-lally <>
  • Loading branch information
0o-de-lally authored Nov 27, 2023
1 parent b4812a2 commit cbf8572
Show file tree
Hide file tree
Showing 34 changed files with 282 additions and 95 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/release-aarch64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: carpe-release-aarch64

on:
push:
branches:
- '*aarch64*'

env:
LDFLAGS: '/opt/homebrew/lib'
LD_LIBRARY_PATH: '/opt/homebrew/lib'
jobs:
publish:
strategy:
fail-fast: false
matrix:
os: [ macos-latest-xlarge ]
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
### DO NOT REMOVE: uncomment if you need to debug runner ###
- name: setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true

# Setup Rust
- uses: dtolnay/[email protected]
with:
components: rustfmt

# Setup Node.js
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18
# checkout
- name: checkout source
uses: actions/checkout@v3


######## MAC ########
- name: osx deps
run: |
brew update
brew reinstall llvm
brew reinstall gmp
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./src-tauri
shared-key: ${{ matrix.os }}
cache-all-crates: true
cache-on-failure: true

######## BUILD ########

- name: yarn installation
run: yarn install


- name: pre-build rust
working-directory: ./src-tauri
run: export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/lib && cargo b --release

- name: Build Tauri
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{secrets.TAURI_PRIVATE_KEY}}
TAURI_KEY_PASSWORD: ${{secrets.TAURI_KEY_PASSWORD}}
LIBRARY_PATH: /opt/homebrew/lib
with:
args: ${{contains(github.ref, 'canary') && '--config src-tauri/tauri.conf.aarch64.json --features carpe-canary' || '--config src-tauri/tauri.conf.aarch64.json' }} #pass the rust feature flags for canary if the tag includes "canary"
tagName: ${{contains(github.ref, 'canary') && 'v__VERSION__-canary' || 'v__VERSION__' }} # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: ${{contains(github.ref, 'canary') && 'v__VERSION__-aarch64-canary' || 'v__VERSION__-aarch64' }}
releaseBody: '[draft]'
releaseDraft: true
prerelease: false
30 changes: 17 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ on:
- '[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'

branches:
- 'canary'
- 'canary*'
- 'release-[0-9]+.[0-9]+.[0-9]+'
- 'ci'
jobs:
publish:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-11]
os: [ macos-11, windows-latest ]
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -24,6 +25,7 @@ jobs:
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true

# Setup Rust
- uses: dtolnay/[email protected]
with:
Expand All @@ -39,18 +41,19 @@ jobs:
uses: actions/checkout@v3

######## UBUNTU ########
- name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential lld pkg-config libclang-dev libwebkit2gtk-4.0-dev libglib2.0-* libssl-dev libgtk-3-dev libappindicator3-dev patchelf librsvg2-dev libvips-dev libgmp-dev
version: 1.0
# - name: install dependencies (ubuntu only)
# if: matrix.os == 'ubuntu-latest'
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: build-essential lld pkg-config libclang-dev libwebkit2gtk-4.0-dev libglib2.0-* libssl-dev libgtk-3-dev libappindicator3-dev patchelf librsvg2-dev libvips-dev libgmp-dev
# version: 1.0

######## MAC ########

- name: set the Mac compile target
- name: install gmp
if: matrix.os == 'macos-11'
run: export CARGO_BUILD_TARGET='universal-apple-darwin'
run: |
brew reinstall gmp
######## WIN ########

Expand All @@ -65,7 +68,6 @@ jobs:
if: matrix.os == 'windows-latest'
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV


# Package the windows dependencies
- name: copy gmp.dll for build
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -97,8 +99,10 @@ jobs:
TAURI_PRIVATE_KEY: ${{secrets.TAURI_PRIVATE_KEY}}
TAURI_KEY_PASSWORD: ${{secrets.TAURI_KEY_PASSWORD}}
with:
args: ${{contains(github.ref, 'canary') && '--config src-tauri/tauri.conf.canary.json --features carpe-canary' || '' }} #pass the rust feature flags for canary if the tag includes "canary"
tagName: ${{contains(github.ref, 'canary') && 'v__VERSION__-canary' || 'v__VERSION__' }} # the action automatically replaces \_\_VERSION\_\_ with the app version
args: ${{contains(github.ref, 'canary') && '--config src-tauri/tauri.conf.canary.json --features carpe-canary' || '' }}
# pass the rust feature flags for canary if the tag includes "canary"
tagName: ${{contains(github.ref, 'canary') && 'v__VERSION__-canary' || 'v__VERSION__' }}
# the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: ${{contains(github.ref, 'canary') && 'v__VERSION__-canary' || 'v__VERSION__' }}
releaseBody: '[draft]'
releaseDraft: true
Expand Down
Binary file added bun.lockb
Binary file not shown.
7 changes: 7 additions & 0 deletions carpe.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}
1 change: 1 addition & 0 deletions dist/assets/index-0968cf85.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/assets/index-48a2a9b5.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/index-48a2a9b5.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/assets/index-699678fd.css

This file was deleted.

2 changes: 0 additions & 2 deletions dist/assets/index-cf00d38c.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/index-cf00d38c.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" crossorigin src="/assets/index-cf00d38c.js"></script>
<link rel="stylesheet" href="/assets/index-699678fd.css">
<script type="module" crossorigin src="/assets/index-48a2a9b5.js"></script>
<link rel="stylesheet" href="/assets/index-0968cf85.css">
</head>
<body>

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"dev:canary": "tauri dev --config src-tauri/tauri.conf.canary.json --features carpe-canary",
"dev:web": "vite",
"build": "tauri build",
"build:universal": "tauri build --target universal-apple-darwin",
"build:aarch64": "RUSTFLAGS='--cfg tokio_unstable' tauri build --target aarch64-apple-darwin",
"build:canary": "tauri build --config src-tauri/tauri.conf.canary.json --features carpe-canary",
"build:web": "vite build",
"lint": "svelte-check --tsconfig ./tsconfig.json && eslint src && prettier --check src",
Expand Down
18 changes: 6 additions & 12 deletions src-tauri/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,9 @@ rustflags = [
"target-feature=+sse4.2",
]

# # 64 bit MSVC
# [target.x86_64-pc-windows-msvc]
# rustflags = [
# "--cfg",
# "tokio_unstable",
# "-C",
# "force-frame-pointers=yes",
# "-C",
# "force-unwind-tables=yes",
# "-C",
# "link-arg=/STACK:8000000" # Set stack to 8 MB
# ]
# apple
[target.aarch64-apple-darwin]
rustflags = [
"--cfg",
"tokio_unstable"
]
14 changes: 7 additions & 7 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ tauri-build = { version = "^1.5.0", features = [] }
built = { version = "0.5.1", features = ["git2"] }

[dependencies]
libra-query = { git = "https://github.com/0LNetworkCommunity/libra-framework.git", branch = "main" }
libra-tower = { git = "https://github.com/0LNetworkCommunity/libra-framework", branch = "main" }
libra-types = { git = "https://github.com/0LNetworkCommunity/libra-framework", branch = "main" }
libra-txs = { git = "https://github.com/0LNetworkCommunity/libra-framework", branch = "main" }
libra-wallet = { git = "https://github.com/0LNetworkCommunity/libra-framework", branch = "main" }
libra-query = { git = "https://github.com/0LNetworkCommunity/libra-framework.git", rev = "cc2ce46" }
libra-tower = { git = "https://github.com/0LNetworkCommunity/libra-framework", rev = "cc2ce46" }
libra-types = { git = "https://github.com/0LNetworkCommunity/libra-framework", rev = "cc2ce46" }
libra-txs = { git = "https://github.com/0LNetworkCommunity/libra-framework", rev = "cc2ce46" }
libra-wallet = { git = "https://github.com/0LNetworkCommunity/libra-framework", rev = "cc2ce46" }

# shared with libra-framework and diem
anyhow = "1.0.62"
Expand Down
Binary file removed src-tauri/libgmp.10.dylib
Binary file not shown.
Binary file removed src-tauri/libgmp.a
Binary file not shown.
Binary file removed src-tauri/libgmp.dylib
Binary file not shown.
Binary file removed src-tauri/libgmpxx.4.dylib
Binary file not shown.
Binary file removed src-tauri/libgmpxx.a
Binary file not shown.
Binary file removed src-tauri/libgmpxx.dylib
Binary file not shown.
19 changes: 18 additions & 1 deletion src-tauri/src/commands/preferences.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::configs::{default_config_path, legacy_config_path};
use crate::migrate::{self, backup_legacy_dir, read_accounts};
use crate::{carpe_error::CarpeError, configs::get_cfg};
use anyhow::Context;
use libra_types::legacy_types::mode_ol::MODE_0L;
use log::{error, info, warn};
use std::env;
Expand Down Expand Up @@ -34,8 +35,24 @@ pub async fn refresh_upstream_peer_stats() -> Result<Vec<Url>, CarpeError> {
let mut app_cfg = get_cfg()?;
app_cfg.refresh_network_profile_and_save(None).await?; // uses app_cfg.chain_info_chain_id
let np = app_cfg.get_network_profile(None)?;
// dbg!(&np);
app_cfg.save_file()?;
Ok(np.the_good_ones()?) // uses app_cfg.chain_info_chain_id

let peers = match np.the_good_ones() {
Ok(r) => r,
_ => {
let first_url = np
.nodes
.first()
.context("no hosts in network playlist")?
.url
.to_owned();

vec![first_url]
}
};
dbg!(&peers);
Ok(peers) // uses app_cfg.chain_info_chain_id
}

#[tauri::command(async)]
Expand Down
9 changes: 4 additions & 5 deletions src-tauri/src/commands/wallets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ async fn map_get_originating_address(list: &mut [Profile]) -> Result<(), CarpeEr

async fn map_get_balance(list: &mut [Profile]) -> anyhow::Result<(), CarpeError> {
futures::future::join_all(list.iter_mut().map(|e| async {
// if query::get_seq_num(e.account).await.is_ok() {
// // e.on_chain = true;
// }
if let Ok(b) = query::get_balance(e.account).await {
e.balance = b;
e.on_chain = true;
}

if query::get_seq_num(e.account).await.is_ok() {
e.on_chain = true;
// e.on_chain = true;
}
}))
.await;
Expand Down
Loading

0 comments on commit cbf8572

Please sign in to comment.