Skip to content

Commit 1397f2a

Browse files
authored
Merge pull request #1268 from leather-wallet/dev
Desktop release
2 parents c87e8be + 18b451b commit 1397f2a

File tree

9 files changed

+58
-33
lines changed

9 files changed

+58
-33
lines changed

.github/workflows/debug-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
uses: ./.github/actions/linux-deps
5959
if: matrix.os == 'ubuntu-20.04'
6060

61+
- uses: actions/setup-python@v5
62+
if: matrix.os == 'macos-11'
63+
with:
64+
python-version: '3.10'
65+
6166
- name: Import GPG key
6267
id: import_gpg_key
6368
uses: crazy-max/ghaction-import-gpg@v5
@@ -128,6 +133,7 @@ jobs:
128133
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
129134
APPLE_ID: ${{ secrets.APPLE_ID }}
130135
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
136+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
131137

132138
- name: Build releases
133139
if: matrix.os != 'macos-11'

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
uses: ./.github/actions/linux-deps
4242
if: matrix.os == 'ubuntu-20.04'
4343

44+
- uses: actions/setup-python@v5
45+
if: matrix.os == 'macos-11'
46+
with:
47+
python-version: '3.10'
48+
4449
- name: Install packages
4550
uses: nick-invision/retry@v2
4651
if: steps.cache-node-modules.outputs.cache-hit != 'true'

.github/workflows/publish-version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
path: '**/node_modules'
4747
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}-${{ secrets.CACHE_BUSTER }}
4848

49+
- uses: actions/setup-python@v5
50+
if: matrix.os == 'macos-11'
51+
with:
52+
python-version: '3.10'
53+
4954
- name: Add required Linux dependencies
5055
uses: ./.github/actions/linux-deps
5156
if: matrix.os == 'ubuntu-20.04'
@@ -96,6 +101,7 @@ jobs:
96101
CSC_KEY_PASSWORD: ${{ secrets[matrix.CSC_KEY_PASSWORD_SECRET_NAME] }}
97102
APPLE_ID: ${{ secrets.APPLE_ID }}
98103
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
104+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
99105

100106
- name: Build releases
101107
if: matrix.os != 'macos-11'

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [4.15.0-dev.1](https://github.com/leather-wallet/desktop/compare/v4.14.3...v4.15.0-dev.1) (2024-05-13)
2+
3+
4+
### Features
5+
6+
* stacking card copy + notarize tool fix ([688fd3a](https://github.com/leather-wallet/desktop/commit/688fd3a6047688208d47e210418bfe35ab9120fa))
7+
18
## [4.14.3](https://github.com/leather-wallet/desktop/compare/v4.14.2...v4.14.3) (2023-10-31)
29

310

app/components/home/stacking-promo-card.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ export const StackingPromoCard: FC = () => {
4141
<Text textStyle="display.large" mt="tight">
4242
Have a chance to earn BTC by locking your STX temporarily
4343
</Text>
44+
45+
<Text textStyle="caption" color={color('text-caption')} lineHeight={1.6} mt="tight">
46+
Stacking already? Stacking info is now found on lockstacks.com
47+
</Text>
48+
4449
<Button
4550
mt="base"
4651
alignSelf="flex-start"
4752
mode="tertiary"
4853
isDisabled={hasPendingDelegateStxCall}
4954
onClick={() => history.push(routes.CHOOSE_STACKING_METHOD)}
5055
>
51-
{hasPendingDelegateStxCall ? 'Delegation pending' : 'Get started →'}
56+
{'Get stacking on Lockstacks →'}
5257
</Button>
5358
</Flex>
5459
</Box>

app/pages/home/home.tsx

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@ import {
66
TransactionListItem,
77
BalanceCard,
88
} from '@components/home';
9-
import { DelegationCard } from '@components/home/delegation-card';
10-
import { StackingBeginsSoonCard } from '@components/home/stacking-begins-soon-card';
11-
import { StackingCard } from '@components/home/stacking-card';
12-
import { StackingError } from '@components/home/stacking-error-card';
13-
import { StackingLoading } from '@components/home/stacking-loading';
149
import { TransactionListItemMempool } from '@components/home/transaction-list/transaction-list-item-mempool';
1510
import routes from '@constants/routes.json';
1611
import { useAnalytics } from '@hooks/use-analytics';
1712
import { useApi } from '@hooks/use-api';
1813
import { useBalance } from '@hooks/use-balance';
19-
import { useDelegationStatus } from '@hooks/use-delegation-status';
2014
import { usePromptUserToSetDiagnosticPermissions } from '@hooks/use-diagnostic-permission-prompt';
2115
import { useLatestNonce } from '@hooks/use-latest-nonce';
2216
import { useTransactionList } from '@hooks/use-transaction-list';
@@ -30,7 +24,6 @@ import {
3024
selectTxModalOpen,
3125
selectReceiveModalOpen,
3226
selectHomeCardState,
33-
HomeCardState,
3427
} from '@store/home';
3528
import { selectRevokeDelegationModalOpen } from '@store/home/home.reducer';
3629
import { RootState } from '@store/index';
@@ -39,7 +32,8 @@ import { selectLoadingStacking, selectNextCycleInfo, selectStackerInfo } from '@
3932
import { selectActiveNodeApi } from '@store/stacks-node';
4033
import { selectTransactionsLoading, selectTransactionListFetchError } from '@store/transaction';
4134
import { openTxInExplorer } from '@utils/external-links';
42-
import React, { FC } from 'react';
35+
import React from 'react';
36+
import { FC } from 'react';
4337
import { useSelector, useDispatch } from 'react-redux';
4438
import { Route, Switch } from 'react-router-dom';
4539

@@ -49,7 +43,6 @@ export const Home: FC = () => {
4943
useLatestNonce();
5044
usePromptUserToSetDiagnosticPermissions();
5145

52-
const { delegated: isDelegated } = useDelegationStatus();
5346
const { availableBalance } = useBalance();
5447

5548
const {
@@ -60,8 +53,6 @@ export const Home: FC = () => {
6053
receiveModalOpen,
6154
revokeDelegationModalOpen,
6255
activeNode,
63-
stackerInfo,
64-
stackingCardState,
6556
} = useSelector((state: RootState) => ({
6657
address: selectAddress(state),
6758
txModalOpen: selectTxModalOpen(state),
@@ -126,18 +117,23 @@ export const Home: FC = () => {
126117
/>
127118
);
128119

129-
const stackingCardMap: Record<HomeCardState, JSX.Element> = {
130-
[HomeCardState.LoadingResources]: <StackingLoading />,
131-
[HomeCardState.NotEnoughStx]: <StackingPromoCard />,
132-
[HomeCardState.EligibleToParticipate]: <StackingPromoCard />,
133-
[HomeCardState.StackingPendingContactCall]: <StackingLoading />,
134-
[HomeCardState.StackingPreCycle]: (
135-
<StackingBeginsSoonCard blocksTillNextCycle={stackerInfo?.blocksUntilStackingCycleBegins} />
136-
),
137-
[HomeCardState.StackingActive]: <StackingCard />,
138-
[HomeCardState.StackingError]: <StackingError />,
139-
[HomeCardState.PostStacking]: <></>,
140-
};
120+
// const stackingCardMap: Record<HomeCardState, JSX.Element> = {
121+
// [HomeCardState.LoadingResources]: (
122+
// <>
123+
// <StackingPromoCard />
124+
// <StackingLoading />
125+
// </>
126+
// ),
127+
// [HomeCardState.NotEnoughStx]: <StackingPromoCard />,
128+
// [HomeCardState.EligibleToParticipate]: <StackingPromoCard />,
129+
// [HomeCardState.StackingPendingContactCall]: <StackingLoading />,
130+
// [HomeCardState.StackingPreCycle]: (
131+
// <StackingBeginsSoonCard blocksTillNextCycle={stackerInfo?.blocksUntilStackingCycleBegins} />
132+
// ),
133+
// [HomeCardState.StackingActive]: <StackingCard />,
134+
// [HomeCardState.StackingError]: <StackingError />,
135+
// [HomeCardState.PostStacking]: <></>,
136+
// };
141137

142138
const stackingRewardCard = (
143139
<StackingRewardCard lifetime="0.0281 Bitcoin (sample)" lastCycle="0.000383 Bitcoin (sample)" />
@@ -151,7 +147,7 @@ export const Home: FC = () => {
151147
<HomeLayout
152148
transactionList={transactionList}
153149
balanceCard={balanceCard}
154-
stackingCard={isDelegated ? <DelegationCard /> : stackingCardMap[stackingCardState]}
150+
stackingCard={<StackingPromoCard />}
155151
stackingRewardCard={stackingRewardCard}
156152
/>
157153
<Switch>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stacks-wallet",
3-
"version": "4.14.3",
3+
"version": "4.15.0-dev.1",
44
"description": "Leather 2.0 — Stacking",
55
"prettier": "@stacks/prettier-config",
66
"homepage": "https://leather.io",
@@ -176,7 +176,7 @@
176176
"electron": "22.3.24",
177177
"electron-builder": "22.10.5",
178178
"electron-devtools-installer": "3.2.0",
179-
"electron-notarize": "1.0.0",
179+
"electron-notarize": "1.2.2",
180180
"electron-rebuild": "3.2.9",
181181
"enzyme": "3.11.0",
182182
"eslint-plugin-jsx-a11y": "6.7.1",

scripts/notarize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { notarize } = require('electron-notarize');
2-
const { appId } = require('../electron-builder.js');
32

43
exports.default = async function notarizing(context) {
54
const { electronPlatformName, appOutDir } = context;
@@ -10,9 +9,10 @@ exports.default = async function notarizing(context) {
109
const appName = context.packager.appInfo.productFilename;
1110

1211
return await notarize({
13-
appBundleId: `${String(appId)}`,
12+
tool: 'notarytool',
1413
appPath: `${String(appOutDir)}/${String(appName)}.app`,
1514
appleId: process.env.APPLE_ID,
1615
appleIdPassword: process.env.APPLE_ID_PASS,
16+
teamId: process.env.APPLE_TEAM_ID,
1717
});
1818
};

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8122,10 +8122,10 @@ electron-localshortcut@^3.1.0:
81228122
keyboardevent-from-electron-accelerator "^2.0.0"
81238123
keyboardevents-areequal "^0.2.1"
81248124

8125-
electron-notarize@1.0.0:
8126-
version "1.0.0"
8127-
resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-1.0.0.tgz#bc925b1ccc3f79e58e029e8c4706572b01a9fd8f"
8128-
integrity sha512-dsib1IAquMn0onCrNMJ6gtEIZn/azG8hZMCYOuZIMVMUeRMgBYHK1s5TK9P8xAcrAjh/2aN5WYHzgVSWX314og==
8125+
electron-notarize@1.2.2:
8126+
version "1.2.2"
8127+
resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-1.2.2.tgz#ebf2b258e8e08c1c9f8ff61dc53d5b16b439daf4"
8128+
integrity sha512-ZStVWYcWI7g87/PgjPJSIIhwQXOaw4/XeXU+pWqMMktSLHaGMLHdyPPN7Cmao7+Cr7fYufA16npdtMndYciHNw==
81298129
dependencies:
81308130
debug "^4.1.1"
81318131
fs-extra "^9.0.1"

0 commit comments

Comments
 (0)