mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 22:28:30 +01:00
2.0 KiB
2.0 KiB
Weird stuff, notes and issues
-
Typing connected component using redux-thunk action creators
-
Tests for custom hooks in suite are ignored (modulePathIgnorePatterns: '/src/utils/suite/hooks')
Things to do in future
Tests
- All suite tests use UTC timezone (set in jest.config.js#L2)
React-native tsconfig regex:
copy block from top level tsconfig.json
find: ./packages/suite/src/(.*)"
replace: ./src/$1", "../../packages/suite/src/$1"
Debugging suite-web on android
Server needs to be running on https in order to have access to navigator.usb functionality
-
Generate localhost certificate: yarn workspace @trezor/suite-web cert
-
Run https server: yarn workspace @trezor/suite-web dev:https
-
Find your ip: ifconfig | grep "inet "
-
Connect phone (dev mode) to computer
-
Access suite using IP (it needs to be in the same network as your computer)
-
Open debugger: chrome://inspect/#devices
How to release - staging
git checkout releases
yarn
Suite web release
ASSET_PREFIX=/wallet yarn workspace @trezor/suite-web buildcd packages/suite-webcd build/staticmkdir desktop- copy desktop apps into the folder (Trezor Suite.(zip, AppImage, exe)).
./scripts/s3sync.sh stage beta(from thepackages/suite-webfolder )
Upload source maps to Sentry
sentry-cli releases -o satoshilabs -p trezor-suite files <COMMIT> upload-sourcemaps ./build
