Skip to content

Commit 32f2253

Browse files
committed
Merge branch 'develop' into ios-tor
2 parents df165cb + 542903c commit 32f2253

105 files changed

Lines changed: 1621 additions & 4810 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/setup-env/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
node-version-file: ".nvmrc"
2222

2323
- name: Set up Python 3.12
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@v6
2525
if: runner.os == 'macOS'
2626
with:
2727
python-version: 3.12
@@ -63,7 +63,7 @@ runs:
6363

6464
- name: "Cache NPM dependencies"
6565
id: cache-nodemodules
66-
uses: actions/cache@v3
66+
uses: actions/cache@v5
6767
with:
6868
path: |
6969
node_modules
521 Bytes
Binary file not shown.

.github/secrets/decrypt_secrets.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
set -e
44

55
gpg --quiet --batch --yes --decrypt --passphrase="$IOS_PROFILE_KEY" --output ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ./.github/secrets/match_AppStore_comquietmobile.mobileprovision.gpg
6+
gpg --quiet --batch --yes --decrypt --passphrase="$IOS_NSE_PROFILE_KEY" --output ./.github/secrets/match_AppStore_comquietmobile_QuietNotificationServiceExtension.mobileprovision ./.github/secrets/match_AppStore_comquietmobile_QuietNotificationServiceExtension.mobileprovision.gpg
67
gpg --quiet --batch --yes --decrypt --passphrase="$IOS_CERTIFICATE_KEY" --output ./.github/secrets/Certificates.p12 ./.github/secrets/Certificates.p12.gpg
8+
gpg --quiet --batch --yes --decrypt --passphrase="$IOS_FIREBASE_KEY" --output ./.github/secrets/GoogleService-Info.plist ./.github/secrets/GoogleService-Info.plist.gpg
79

810
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
911

1012
cp ./.github/secrets/match_AppStore_comquietmobile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/762df280-302c-4336-a56d-c74914169337.mobileprovision
13+
cp ./.github/secrets/match_AppStore_comquietmobile_QuietNotificationServiceExtension.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/247b3945-4f28-4ef1-b722-e98fb3fb59f7.mobileprovision
14+
cp ./.github/secrets/GoogleService-Info.plist ./packages/mobile/ios/GoogleService-Info.plist
1115

1216
security create-keychain -p "" build.keychain
1317
security import ./.github/secrets/Certificates.p12 -t agg -k ~/Library/Keychains/build.keychain -P "$IOS_CERTIFICATE_KEY" -A

.github/workflows/backend-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
os: [ubuntu-22.04, macos-latest, windows-latest]
1313

1414
steps:
15-
- uses: dorny/paths-filter@v3
15+
- uses: dorny/paths-filter@v4
1616
id: filter
1717
with:
1818
filters: |
@@ -29,7 +29,7 @@ jobs:
2929
if: steps.filter.outputs.backend == 'true'
3030
run: echo ${{ matrix.os }}
3131

32-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
32+
- uses: actions/checkout@v5
3333
if: steps.filter.outputs.backend == 'true'
3434
with:
3535
submodules: 'recursive'
@@ -52,7 +52,7 @@ jobs:
5252
os: [ubuntu-22.04]
5353

5454
steps:
55-
- uses: dorny/paths-filter@v3
55+
- uses: dorny/paths-filter@v4
5656
id: filter
5757
with:
5858
filters: |
@@ -68,7 +68,7 @@ jobs:
6868
if: steps.filter.outputs.backend == 'true'
6969
run: echo ${{ matrix.os }}
7070

71-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
71+
- uses: actions/checkout@v5
7272
if: steps.filter.outputs.backend == 'true'
7373
with:
7474
submodules: 'recursive'
@@ -91,7 +91,7 @@ jobs:
9191
os: [ubuntu-22.04]
9292

9393
steps:
94-
- uses: dorny/paths-filter@v3
94+
- uses: dorny/paths-filter@v4
9595
id: filter
9696
with:
9797
filters: |
@@ -107,7 +107,7 @@ jobs:
107107
if: steps.filter.outputs.backend == 'true'
108108
run: echo ${{ matrix.os }}
109109

110-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
110+
- uses: actions/checkout@v5
111111
if: steps.filter.outputs.backend == 'true'
112112
with:
113113
submodules: 'recursive'

.github/workflows/check-desktop-visual-regression.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
os: [ubuntu-22.04]
1313

1414
steps:
15-
- uses: dorny/paths-filter@v3
15+
- uses: dorny/paths-filter@v4
1616
id: filter
1717
with:
1818
filters: |
@@ -28,7 +28,7 @@ jobs:
2828
if: steps.filter.outputs.desktop == 'true'
2929
run: echo ${{ matrix.os }}
3030

31-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+
- uses: actions/checkout@v5
3232
if: steps.filter.outputs.desktop == 'true'
3333
with:
3434
fetch-depth: 0 # Required to retrieve git history

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: "Print OS"
1717
run: echo ${{ matrix.os }}
1818

19-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19+
- uses: actions/checkout@v5
2020
with:
2121
submodules: 'recursive'
2222

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
44+
uses: actions/checkout@v5
4545
with:
4646
submodules: 'recursive'
4747

.github/workflows/depencency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-22.04
1818
steps:
1919
- name: 'Checkout Repository'
20-
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
20+
uses: actions/checkout@v5
2121
with:
2222
submodules: 'recursive'
2323

.github/workflows/desktop-build.yml

Lines changed: 92 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ jobs:
1919
source_path: linux
2020
build_cmd: "--linux AppImage"
2121
artifact_glob: "packages/desktop/dist/*.AppImage"
22-
- os: macos-15-intel
22+
- os: macos-26-intel
2323
target: macos
2424
source_path: darwin
2525
build_cmd: "--mac"
2626
artifact_glob: "packages/desktop/dist/*.dmg"
27+
- os: macos-latest
28+
target: macos-arm
29+
source_path: darwin
30+
build_cmd: "--mac --arm64"
31+
artifact_glob: "packages/desktop/dist/*.dmg"
2732
- os: windows-latest
2833
target: win
2934
source_path: win32
@@ -35,7 +40,7 @@ jobs:
3540
TEST_MODE: true
3641
IS_LOCAL: true
3742
steps:
38-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
43+
- uses: actions/checkout@v5
3944
with:
4045
submodules: recursive
4146

@@ -99,7 +104,7 @@ jobs:
99104
startsWith(github.ref, 'refs/tags/@quiet/desktop')
100105
101106
steps:
102-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
107+
- uses: actions/checkout@v5
103108
with:
104109
submodules: 'recursive'
105110

@@ -145,7 +150,7 @@ jobs:
145150
CHECKSUM_PATH: ${{ github.event.action == 'released' && 'packages/desktop/dist/latest-linux.yml' || 'packages/desktop/dist/alpha-linux.yml' }}
146151

147152
steps:
148-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
153+
- uses: actions/checkout@v5
149154
with:
150155
submodules: 'recursive'
151156

@@ -218,7 +223,7 @@ jobs:
218223

219224
build-macos-prod:
220225
# needs: run-e2e-tests-mac
221-
runs-on: macos-15-intel
226+
runs-on: macos-26-intel
222227
if: |
223228
startsWith(github.ref, 'refs/tags/@quiet/desktop')
224229
@@ -227,7 +232,7 @@ jobs:
227232
S3_BUCKET: ${{ github.event.action == 'released' && 'quiet.7.x' || 'test.quiet' }}
228233

229234
steps:
230-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
235+
- uses: actions/checkout@v5
231236
with:
232237
submodules: 'recursive'
233238

@@ -296,6 +301,86 @@ jobs:
296301
version: ${{ steps.extract_version.outputs.version }}
297302
status: ${{ job.status }}
298303
slack_oauth_token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
304+
305+
build-macos-arm64-prod:
306+
runs-on: macos-26
307+
if: |
308+
startsWith(github.ref, 'refs/tags/@quiet/desktop')
309+
310+
env:
311+
TEST_MODE: ${{ github.event.action == 'prereleased' }}
312+
S3_BUCKET: ${{ github.event.action == 'released' && 'quiet.7.x' || 'test.quiet' }}
313+
314+
steps:
315+
- uses: actions/checkout@v5
316+
with:
317+
submodules: 'recursive'
318+
319+
- name: Extract version
320+
id: extract_version
321+
uses: Saionaro/extract-package-version@fdb5b74adc1278ddb777dfed4c988b9d098bb48d # v1.2.1
322+
with:
323+
path: packages/desktop
324+
325+
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
326+
with:
327+
toolchain: stable
328+
components: clippy
329+
override: true
330+
331+
- name: Setup environment
332+
uses: ./.github/actions/setup-env
333+
with:
334+
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/desktop,backend-bundle,helia,@quiet/node-common"
335+
336+
- name: Before build
337+
uses: ./.github/actions/before-build
338+
with:
339+
source-path: darwin
340+
341+
- name: "Remove crud files"
342+
run: xattr -crs .
343+
344+
- name: "Set electron-builder props"
345+
run: echo "ELECTRON_BUILDER_PROPS=-c.publish.bucket=$S3_BUCKET" >> $GITHUB_ENV
346+
347+
- name: "Release"
348+
env:
349+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
350+
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
351+
CSC_LINK: ${{ secrets.MAC_CSC_LINK }}
352+
APPLE_ID: ${{ secrets.APPLE_ID }}
353+
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
354+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
355+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
356+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
357+
USE_HARD_LINKS: false
358+
run: cd packages/desktop && node_modules/.bin/electron-builder -p always --mac --arm64 ${{ env.ELECTRON_BUILDER_PROPS }}
359+
360+
- name: Get release
361+
id: get_release
362+
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f # v1.3.2
363+
env:
364+
GITHUB_TOKEN: ${{ github.token }}
365+
366+
- name: Upload Release Assets
367+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
368+
env:
369+
GITHUB_TOKEN: ${{ github.token }}
370+
with:
371+
upload_url: ${{ steps.get_release.outputs.upload_url }}
372+
asset_path: ./packages/desktop/dist/Quiet-${{ steps.extract_version.outputs.version}}-arm64.dmg
373+
asset_name: Quiet-${{ steps.extract_version.outputs.version}}-arm64.dmg
374+
asset_content_type: application/.dmg
375+
376+
- name: Send Release Notificaton
377+
uses: ./.github/actions/release-notifier
378+
if: always()
379+
with:
380+
os-name: MacOS (arm64)
381+
version: ${{ steps.extract_version.outputs.version }}
382+
status: ${{ job.status }}
383+
slack_oauth_token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
299384

300385
build-windows-prod:
301386
# needs: run-e2e-tests-win
@@ -308,7 +393,7 @@ jobs:
308393
S3_BUCKET: ${{ github.event.action == 'released' && 'quiet.7.x' || 'test.quiet' }}
309394

310395
steps:
311-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
396+
- uses: actions/checkout@v5
312397
with:
313398
submodules: 'recursive'
314399

0 commit comments

Comments
 (0)