Skip to content

Commit 36c6080

Browse files
authored
Merge branch 'develop' into fix-dao
2 parents 7ad89ec + 0a03ea2 commit 36c6080

File tree

8 files changed

+168
-165
lines changed

8 files changed

+168
-165
lines changed

.github/workflows/package.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ jobs:
5050
key: 2022-12-21-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}
5151

5252
- name: Add msbuild to PATH
53-
if: matrix.os == 'windows-2019'
53+
if: runner.os == 'Windows'
5454
uses: microsoft/setup-msbuild@v2
5555
env:
5656
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
5757

5858
- name: Setup Certificate
59-
if: matrix.os == 'windows-2019'
59+
if: runner.os == 'Windows'
6060
run: |
6161
echo "${{ secrets.SM_CLIENT_CERT_FILE_BASE64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
6262
shell: bash
6363

6464
- name: Set variables
65-
if: matrix.os == 'windows-2019'
65+
if: runner.os == 'Windows'
6666
run: |
6767
echo "SM_KEYPAIR_NAME=${{ secrets.SM_KEYPAIR_ALIAS }}" >> "$GITHUB_ENV"
6868
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
@@ -75,15 +75,15 @@ jobs:
7575
shell: bash
7676

7777
- name: Setting up the client tools
78-
if: ${{ matrix.os == 'windows-2019' && env.SM_API_KEY != '' }}
78+
if: ${{ runner.os == 'Windows' && env.SM_API_KEY != '' }}
7979
run: |
8080
curl -X GET https://one.digicert.com/signingmanager/api-ui/v1/releases/smtools-windows-x64.msi/download -H "x-api-key:%SM_API_KEY%" -o smtools-windows-x64.msi
8181
msiexec /i smtools-windows-x64.msi /quiet /qn
8282
C:\Windows\System32\certutil.exe -csp "DigiCert Signing Manager KSP" -key -user
8383
shell: cmd
8484

8585
- name: Certificates Sync
86-
if: ${{ matrix.os == 'windows-2019' && env.SM_API_KEY != '' }}
86+
if: ${{ runner.os == 'Windows' && env.SM_API_KEY != '' }}
8787
run: |
8888
smctl windows certsync
8989
shell: cmd
@@ -109,7 +109,7 @@ jobs:
109109
echo "LOG_ENCRYPTION_PUBLIC_KEY=${{ secrets.LOG_ENCRYPTION_PUBLIC_KEY }}" >> packages/neuron-wallet/.env
110110
111111
- name: Package for MacOS
112-
if: matrix.os == 'macos-latest'
112+
if: runner.os == 'macOS'
113113
run: |
114114
./scripts/download-ckb.sh mac
115115
yarn release mac
@@ -122,7 +122,7 @@ jobs:
122122
TEAM_ID: ${{ secrets.TEAM_ID }}
123123

124124
- name: Package for Windows
125-
if: matrix.os == 'windows-2019'
125+
if: runner.os == 'Windows'
126126
run: |
127127
bash ./scripts/download-ckb.sh win
128128
yarn build
@@ -132,50 +132,50 @@ jobs:
132132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133133

134134
- name: Package for Linux
135-
if: matrix.os == 'ubuntu-20.04'
135+
if: runner.os == 'Linux'
136136
run: |
137137
./scripts/download-ckb.sh
138138
yarn release linux
139139
env:
140140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141141

142142
- name: Upload Neuron App Zip
143-
if: matrix.os == 'macos-latest'
143+
if: runner.os == 'macOS'
144144
uses: actions/upload-artifact@v4
145145
with:
146146
name: Neuron-Mac-x64
147147
path: release/Neuron-*-mac-x64.zip
148148

149149
- name: Upload Neuron App Zip(arm64)
150-
if: matrix.os == 'macos-latest'
150+
if: runner.os == 'macOS'
151151
uses: actions/upload-artifact@v4
152152
with:
153153
name: Neuron-Mac-arm64
154154
path: release/Neuron-*-mac-arm64.zip
155155

156156
- name: Upload Neuron Dmg
157-
if: matrix.os == 'macos-latest'
157+
if: runner.os == 'macOS'
158158
uses: actions/upload-artifact@v4
159159
with:
160160
name: Neuron-Dmg-x64
161161
path: release/Neuron-*-x64.dmg
162162

163163
- name: Upload Neuron Dmg(arm64)
164-
if: matrix.os == 'macos-latest'
164+
if: runner.os == 'macOS'
165165
uses: actions/upload-artifact@v4
166166
with:
167167
name: Neuron-Dmg-arm64
168168
path: release/Neuron-*-arm64.dmg
169169

170170
- name: Upload Neuron Win
171-
if: matrix.os == 'windows-2019'
171+
if: runner.os == 'Windows'
172172
uses: actions/upload-artifact@v4
173173
with:
174174
name: Neuron-Win
175175
path: release/Neuron-*-setup.exe
176176

177177
- name: Upload Neuron Linux
178-
if: matrix.os == 'ubuntu-20.04'
178+
if: runner.os == 'Linux'
179179
uses: actions/upload-artifact@v4
180180
with:
181181
name: Neuron-Linux

.github/workflows/package_for_test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ jobs:
9292
key: 2022-12-21-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}
9393

9494
- name: Add msbuild to PATH
95-
if: matrix.os == 'windows-2019'
95+
if: runner.os == 'Windows'
9696
uses: microsoft/setup-msbuild@v2
9797
env:
9898
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
9999

100100
- name: Setup Certificate
101-
if: matrix.os == 'windows-2019'
101+
if: runner.os == 'Windows'
102102
run: |
103103
echo "${{ secrets.SM_CLIENT_CERT_FILE_BASE64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
104104
shell: bash
105105

106106
- name: Set variables
107-
if: matrix.os == 'windows-2019'
107+
if: runner.os == 'Windows'
108108
run: |
109109
echo "SM_KEYPAIR_NAME=${{ secrets.SM_KEYPAIR_ALIAS }}" >> "$GITHUB_ENV"
110110
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
@@ -117,15 +117,15 @@ jobs:
117117
shell: bash
118118

119119
- name: Setting up the client tools
120-
if: ${{ matrix.os == 'windows-2019' && env.SM_API_KEY != '' }}
120+
if: ${{ runner.os == 'Windows' && env.SM_API_KEY != '' }}
121121
run: |
122122
curl -X GET https://one.digicert.com/signingmanager/api-ui/v1/releases/smtools-windows-x64.msi/download -H "x-api-key:%SM_API_KEY%" -o smtools-windows-x64.msi
123123
msiexec /i smtools-windows-x64.msi /quiet /qn
124124
C:\Windows\System32\certutil.exe -csp "DigiCert Signing Manager KSP" -key -user
125125
shell: cmd
126126

127127
- name: Certificates Sync
128-
if: ${{ matrix.os == 'windows-2019' && env.SM_API_KEY != '' }}
128+
if: ${{ runner.os == 'Windows' && env.SM_API_KEY != '' }}
129129
run: |
130130
smctl windows certsync
131131
shell: cmd
@@ -154,7 +154,7 @@ jobs:
154154
fs.writeFileSync(ympPath, fs.readFileSync(ympPath).toString().replace('asar: true', 'asar: false'))
155155
156156
- name: Package for MacOS
157-
if: ${{ matrix.os == 'macos-latest' && env.MAC_SHOULD_CODE_SIGN == 'true' }}
157+
if: ${{ runner.os == 'macOS' && env.MAC_SHOULD_CODE_SIGN == 'true' }}
158158
run: |
159159
./scripts/download-ckb.sh mac
160160
yarn package:test mac
@@ -168,7 +168,7 @@ jobs:
168168
USE_HARD_LINKS: false
169169

170170
- name: Package for MacOS for skip code sign
171-
if: ${{ matrix.os == 'macos-latest' && env.MAC_SHOULD_CODE_SIGN == 'false' }}
171+
if: ${{ runner.os == 'macOS' && env.MAC_SHOULD_CODE_SIGN == 'false' }}
172172
run: |
173173
export CSC_IDENTITY_AUTO_DISCOVERY=false
174174
./scripts/download-ckb.sh mac
@@ -179,7 +179,7 @@ jobs:
179179
USE_HARD_LINKS: false
180180

181181
- name: Package for Windows
182-
if: matrix.os == 'windows-2019'
182+
if: runner.os == 'Windows'
183183
run: |
184184
bash ./scripts/download-ckb.sh win
185185
yarn build
@@ -189,7 +189,7 @@ jobs:
189189
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190190

191191
- name: Package for Linux
192-
if: matrix.os == 'ubuntu-20.04'
192+
if: runner.os == 'Linux'
193193
run: |
194194
./scripts/download-ckb.sh
195195
yarn package:test linux
@@ -198,42 +198,42 @@ jobs:
198198
USE_HARD_LINKS: false
199199

200200
- name: Upload Neuron App Zip
201-
if: matrix.os == 'macos-latest'
201+
if: runner.os == 'macOS'
202202
uses: actions/upload-artifact@v4
203203
with:
204204
name: Neuron-Mac-x64
205205
path: release/Neuron-*-mac-x64.zip
206206

207207
- name: Upload Neuron App Zip(arm64)
208-
if: matrix.os == 'macos-latest'
208+
if: runner.os == 'macOS'
209209
uses: actions/upload-artifact@v4
210210
with:
211211
name: Neuron-Mac-arm64
212212
path: release/Neuron-*-mac-arm64.zip
213213

214214
- name: Upload Neuron Dmg
215-
if: matrix.os == 'macos-latest'
215+
if: runner.os == 'macOS'
216216
uses: actions/upload-artifact@v4
217217
with:
218218
name: Neuron-Dmg-x64
219219
path: release/Neuron-*-x64.dmg
220220

221221
- name: Upload Neuron Dmg(arm64)
222-
if: matrix.os == 'macos-latest'
222+
if: runner.os == 'macOS'
223223
uses: actions/upload-artifact@v4
224224
with:
225225
name: Neuron-Dmg-arm64
226226
path: release/Neuron-*-arm64.dmg
227227

228228
- name: Upload Neuron Win
229-
if: matrix.os == 'windows-2019'
229+
if: runner.os == 'Windows'
230230
uses: actions/upload-artifact@v4
231231
with:
232232
name: Neuron-Win
233233
path: release/Neuron-*-setup.exe
234234

235235
- name: Upload Neuron Linux
236-
if: matrix.os == 'ubuntu-20.04'
236+
if: runner.os == 'Linux'
237237
uses: actions/upload-artifact@v4
238238
with:
239239
name: Neuron-Linux

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2024 Nervos Foundation
3+
Copyright (c) 2019-2025 Nervos Foundation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"husky": "8.0.3",
5656
"jest": "27.5.1",
5757
"lerna": "8.2.2",
58-
"lint-staged": "15.2.7",
58+
"lint-staged": "15.5.2",
5959
"ncp": "2.0.0",
6060
"prettier": "2.8.8",
6161
"ts-jest": "29.2.0",
@@ -65,7 +65,7 @@
6565
},
6666
"dependencies": {},
6767
"resolutions": {
68-
"@types/react": "18.3.21",
68+
"@types/react": "18.3.22",
6969
"react-i18next": ">=11.16.4",
7070
"react-refresh": "0.17.0",
7171
"node-fetch": "2.6.13",

packages/neuron-ui/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"i18next": "23.7.11",
6161
"immer": "9.0.21",
6262
"jsqr": "1.4.0",
63-
"office-ui-fabric-react": "7.204.0",
63+
"office-ui-fabric-react": "7.204.1",
6464
"qr.js": "0.0.0",
6565
"react": "18.3.1",
6666
"react-dom": "18.3.1",
@@ -84,15 +84,15 @@
8484
"@storybook/react-vite": "8.6.14",
8585
"@storybook/testing-library": "0.2.2",
8686
"@testing-library/jest-dom": "6.6.3",
87-
"@testing-library/react": "16.2.0",
87+
"@testing-library/react": "16.3.0",
8888
"@types/enzyme": "3.10.19",
8989
"@types/enzyme-adapter-react-16": "1.0.9",
9090
"@types/node": "20.10.5",
91-
"@types/react": "18.3.21",
91+
"@types/react": "18.3.22",
9292
"@types/react-dom": "18.3.7",
9393
"@types/react-router-dom": "5.3.3",
9494
"@types/styled-components": "5.1.34",
95-
"@vitejs/plugin-react": "4.3.4",
95+
"@vitejs/plugin-react": "4.5.0",
9696
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
9797
"babel-jest": "25.5.1",
9898
"electron": "30.0.0",

packages/neuron-wallet/electron-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appId: com.nervos.neuron
2-
copyright: Copyright (C) 2019-2024 Nervos Foundation.
2+
copyright: Copyright (C) 2019-2025 Nervos Foundation.
33
productName: Neuron
44

55
# This property will replace to false in package for test action

packages/neuron-wallet/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@magickbase/hw-app-ckb": "0.2.0-alpha.0",
5353
"@spore-sdk/core": "0.1.0",
5454
"archiver": "6.0.2",
55-
"async": "3.2.5",
55+
"async": "3.2.6",
5656
"bn.js": "4.12.0",
5757
"chalk": "3.0.0",
5858
"dotenv": "8.6.0",
@@ -73,7 +73,7 @@
7373
"uuid": "8.3.2"
7474
},
7575
"devDependencies": {
76-
"@electron/notarize": "2.3.2",
76+
"@electron/notarize": "2.5.0",
7777
"@nervosnetwork/ckb-types": "0.109.1",
7878
"@types/archiver": "6.0.3",
7979
"@types/async": "3.2.24",

0 commit comments

Comments
 (0)