@@ -270,7 +270,7 @@ jobs:
270
270
name : logseq-linux-arm64-builds
271
271
path : builds
272
272
273
- build-windows :
273
+ build-windows-x64 :
274
274
runs-on : windows-latest
275
275
needs : [ compile-cljs ]
276
276
steps :
@@ -321,7 +321,7 @@ jobs:
321
321
- name : Upload Artifact for Code Signing
322
322
uses : actions/upload-artifact@v4
323
323
with :
324
- name : logseq-win64 -unsigned-builds
324
+ name : logseq-win-x64 -unsigned-builds
325
325
path : builds
326
326
327
327
- name : Save Artifact
@@ -335,7 +335,75 @@ jobs:
335
335
- name : Upload Artifact
336
336
uses : actions/upload-artifact@v4
337
337
with :
338
- name : logseq-win64-builds
338
+ name : logseq-win-x64-builds
339
+ path : builds
340
+
341
+ build-windows-arm64 :
342
+ runs-on : windows-latest
343
+ needs : [ compile-cljs ]
344
+ steps :
345
+ - name : Download The Static Asset
346
+ uses : actions/download-artifact@v4
347
+ with :
348
+ name : static
349
+ path : static
350
+
351
+ - name : Retrieve tag version
352
+ id : ref
353
+ run : echo "version=$(cat ./static/VERSION)" >> $env:GITHUB_OUTPUT
354
+
355
+ - name : Install Node.js, NPM and Yarn
356
+ uses : actions/setup-node@v4
357
+ with :
358
+ node-version : ${{ env.NODE_VERSION }}
359
+
360
+ # - name: Cache Node Modules
361
+ # uses: actions/cache@v4
362
+ # with:
363
+ # path: |
364
+ # **/node_modules
365
+ # key: ${{ runner.os }}-node-modules
366
+
367
+ - name : Deps Electron app
368
+ run : yarn install
369
+ working-directory : ./static
370
+
371
+ - name : Fix Deps Electron app
372
+ run : yarn run postinstall
373
+ working-directory : ./static/node_modules/dugite/
374
+
375
+ - name : Build/Release Electron app
376
+ run : yarn electron:make-win-arm64
377
+ working-directory : ./static
378
+ env :
379
+ DEBUG : electron-packager
380
+ # env:
381
+ # CODE_SIGN_CERTIFICATE_FILE: ../codesign.pfx
382
+ # CODE_SIGN_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGN_CERTIFICATE_PASSWORD }}
383
+
384
+ - name : Save Artifact for Code Signing
385
+ run : |
386
+ mkdir builds
387
+ mv static\out\make\squirrel.windows\arm64\*.exe builds\Logseq-win-arm64-${{ steps.ref.outputs.version }}.exe
388
+
389
+ - name : Upload Artifact for Code Signing
390
+ uses : actions/upload-artifact@v4
391
+ with :
392
+ name : logseq-win-arm64-unsigned-builds
393
+ path : builds
394
+
395
+ - name : Save Artifact
396
+ run : |
397
+ rm builds\*.exe
398
+ mv static\out\make\squirrel.windows\arm64\*.nupkg builds\Logseq-win-arm64-${{ steps.ref.outputs.version }}-full.nupkg
399
+ mv static\out\make\zip\win32\arm64\*.zip builds\Logseq-win-arm64-${{ steps.ref.outputs.version }}.zip
400
+ mv static\out\make\wix\arm64\Logseq.msi builds\Logseq-win-arm64-${{ steps.ref.outputs.version }}.msi
401
+ mv static\out\make\squirrel.windows\arm64\RELEASES builds\RELEASES
402
+
403
+ - name : Upload Artifact
404
+ uses : actions/upload-artifact@v4
405
+ with :
406
+ name : logseq-win-arm64-builds
339
407
path : builds
340
408
341
409
build-macos-x64 :
@@ -506,30 +574,45 @@ jobs:
506
574
507
575
codesign-windows :
508
576
if : ${{ github.event_name == 'schedule' || github.event.inputs.build-target == 'nightly' || github.event.inputs.build-target == 'beta' }}
509
- needs : [ build-windows ]
577
+ needs : [ build-windows-x64, build-windows-arm64 ]
510
578
runs-on : [self-hosted, macos, token]
511
579
steps :
512
580
- name : Remove old builds
513
581
run : rm -rf ./builds && mkdir ./builds
514
582
515
- - name : Download Windows Artifact
583
+ - name : Download Windows x64 Artifact
516
584
uses : actions/download-artifact@v4
517
585
with :
518
- name : logseq-win64-unsigned-builds
519
- path : ./builds
586
+ name : logseq-win-x64-unsigned-builds
587
+ path : ./builds-x64
588
+
589
+ - name : Download Windows arm64 Artifact
590
+ uses : actions/download-artifact@v4
591
+ with :
592
+ name : logseq-win-arm64-unsigned-builds
593
+ path : ./builds-arm64
520
594
521
595
- name : Sign Windows Executable
522
596
run : |
523
- ls -lah ./builds
524
- jsign --storetype ETOKEN --storepass "${PASS}" -t http://timestamp.sectigo.com ./builds/*.exe
597
+ ls -lah ./builds-x64
598
+ jsign --storetype ETOKEN --storepass "${PASS}" -t http://timestamp.sectigo.com ./builds-x64/*.exe
599
+ ls -lah ./builds-arm64
600
+ jsign --storetype ETOKEN --storepass "${PASS}" -t http://timestamp.sectigo.com ./builds-arm64/*.exe
525
601
env :
526
602
PASS : ${{ secrets.CODE_SIGN_CERTIFICATE_PASSWORD }}
527
603
528
- - name : Upload Artifact
604
+ - name : Upload Artifact x64 (Signed)
529
605
uses : actions/upload-artifact@v4
530
606
with :
531
- name : logseq-win64-signed-builds
532
- path : builds
607
+ name : logseq-win-x64-signed-builds
608
+ path : builds-x64
609
+
610
+ - name : Upload Artifact arm64 (Signed)
611
+ uses : actions/upload-artifact@v4
612
+ with :
613
+ name : logseq-win-arm64-signed-builds
614
+ path : builds-arm64
615
+
533
616
534
617
nightly-release :
535
618
if : ${{ github.event_name == 'schedule' || github.event.inputs.build-target == 'nightly' }}
@@ -560,16 +643,28 @@ jobs:
560
643
name : logseq-linux-arm64-builds
561
644
path : ./
562
645
563
- - name : Download The Windows Artifact (Signed)
646
+ - name : Download The Windows Artifact x64 (Signed)
564
647
uses : actions/download-artifact@v4
565
648
with :
566
- name : logseq-win64 -signed-builds
649
+ name : logseq-win-x64 -signed-builds
567
650
path : ./
568
651
569
- - name : Download The Windows Artifact
652
+ - name : Download The Windows Artifact x64 (Unsigned)
653
+ uses : actions/download-artifact@v4
654
+ with :
655
+ name : logseq-win-x64-builds
656
+ path : ./
657
+
658
+ - name : Download The Windows Artifact arm64 (Signed)
659
+ uses : actions/download-artifact@v4
660
+ with :
661
+ name : logseq-win-arm64-signed-builds
662
+ path : ./
663
+
664
+ - name : Download The Windows Artifact arm64 (Unsigned)
570
665
uses : actions/download-artifact@v4
571
666
with :
572
- name : logseq-win64 -builds
667
+ name : logseq-win-arm64 -builds
573
668
path : ./
574
669
575
670
- name : Download Android Artifacts
@@ -643,13 +738,25 @@ jobs:
643
738
- name : Download The Windows Artifact (Signed)
644
739
uses : actions/download-artifact@v4
645
740
with :
646
- name : logseq-win64-signed-builds
741
+ name : logseq-win-x64-signed-builds
742
+ path : ./
743
+
744
+ - name : Download The Windows Artifact
745
+ uses : actions/download-artifact@v4
746
+ with :
747
+ name : logseq-win-x64-builds
748
+ path : ./
749
+
750
+ - name : Download The Windows Artifact (Signed)
751
+ uses : actions/download-artifact@v4
752
+ with :
753
+ name : logseq-win-arm64-signed-builds
647
754
path : ./
648
755
649
756
- name : Download The Windows Artifact
650
757
uses : actions/download-artifact@v4
651
758
with :
652
- name : logseq-win64 -builds
759
+ name : logseq-win-arm64 -builds
653
760
path : ./
654
761
655
762
- name : Download Android Artifacts
0 commit comments