Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Feb 26, 2025
1 parent 9d21e59 commit 1503ce8
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .containerversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
27
28
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
FROM thyrlian/android-sdk:4.0 as android

FROM ubuntu:20.04
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -30,6 +30,6 @@ ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH
ADD Makefile /tmp/
RUN make -C /tmp/ envinit

ENV PATH /opt/qt6/6.2.4/gcc_64/bin:/opt/qt6/6.2.4/gcc_64/libexec:$PATH
ENV PATH /opt/qt6/6.5.3/gcc_64/bin:/opt/qt6/6.5.3/gcc_64/libexec:$PATH

CMD ["bash"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ clean:
cd frontends/android && $(MAKE) clean
cd backend/mobileserver && $(MAKE) clean
dockerinit:
./scripts/container.sh build --pull --force-rm -t shiftcrypto/bitbox-wallet-app .
./scripts/container.sh build --pull -t shiftcrypto/bitbox-wallet-app .
dockerdev:
./scripts/dockerdev.sh
locize-push:
Expand Down
4 changes: 2 additions & 2 deletions frontends/qt/BitBox.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CFORTIFY = -O2 -D_FORTIFY_SOURCE=2
CSTACK = -fstack-protector-all -fstack-check
CMISC = -fwrapv
CASLR = -fPIE -fPIC

CONFIG += debug
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
Expand All @@ -42,7 +42,7 @@ win32 {
#QMAKE_LFLAGS += -Wl,--nxcompat
#QMAKE_LFLAGS += -Wl,--dynamicbase
} else {
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -std=c++17
LIBS += -L$$PWD/server -lserver
QMAKE_CXXFLAGS += $$CFORTIFY
QMAKE_CXXFLAGS += $$CSTACK
Expand Down
5 changes: 3 additions & 2 deletions frontends/qt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ linux:
$(MAKE) clean
cd server && $(MAKE) linux
$(MAKE) base
qmake -o build/Makefile
qmake -o build/Makefile
cd build && $(MAKE)
mkdir build/linux-tmp build/linux
mv build/BitBox build/linux-tmp
Expand All @@ -36,7 +36,8 @@ linux:
# Add Wayland libs so the app can run natively on Wayland too.
# The linuxdeployqt maintainer unfortunately refuses to support it automatically: https://github.com/probonopd/linuxdeployqt/issues/189
# The list of related plugins was found by: `find $(qmake -query QT_INSTALL_PLUGINS) | grep wayland`
-extra-plugins=platforms/libqwayland-generic.so,platforms/libqwayland-egl.so,wayland-graphics-integration-client,wayland-decoration-client,wayland-shell-integration
-extra-plugins=platforms/libqwayland-generic.so,platforms/libqwayland-egl.so,wayland-graphics-integration-client,wayland-decoration-client,wayland-shell-integration,*.debug> \
-no-strip
cp /usr/lib/x86_64-linux-gnu/nss/* build/linux-tmp/lib
cp -aR resources/linux build/tmp-deb
cp resources/linux/usr/share/applications/bitbox.desktop build/linux-tmp
Expand Down
10 changes: 5 additions & 5 deletions frontends/qt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ int main(int argc, char *argv[])
preferredLocale = uiLangs.first();
}

QThread workerThread;
//QThread workerThread;
webClass = new WebClass();
// Run client queries in a separate thread to not block the UI.
webClass->moveToThread(&workerThread);
workerThread.start();
// webClass->moveToThread(&workerThread);
// workerThread.start();

serve(
// cppHeapFree
Expand Down Expand Up @@ -480,8 +480,8 @@ int main(int argc, char *argv[])
delete view;
view = nullptr;
webClassMutex.unlock();
workerThread.quit();
workerThread.wait();
// workerThread.quit();
// workerThread.wait();
});

#if defined(_WIN32)
Expand Down
1 change: 1 addition & 0 deletions frontends/web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"ignorePatterns": ["src/utils/qwebchannel.js"],
"settings": {
"react": {
"version": "detect"
Expand Down
Loading

0 comments on commit 1503ce8

Please sign in to comment.