File tree 4 files changed +416
-334
lines changed
4 files changed +416
-334
lines changed Original file line number Diff line number Diff line change 60
60
if [ $IS_FORK = true ]; then
61
61
echo "Skipping the app signing: building from a fork."
62
62
else
63
- export BUILD_SUFFIX="linux";
64
63
if [ "${{ runner.OS }}" = "macOS" ]; then
65
- export BUILD_SUFFIX="mac";
66
64
export CSC_LINK="${{ runner.temp }}/signing_certificate.p12"
67
65
# APPLE_SIGNING_CERTIFICATE_P12 secret was produced by following the procedure from:
68
66
# https://www.kencochrane.com/2020/08/01/build-and-sign-golang-binaries-for-macos-with-github-actions/#exporting-the-developer-certificate
71
69
export CSC_KEY_PASSWORD="${{ secrets.KEYCHAIN_PASSWORD }}"
72
70
73
71
elif [ "${{ runner.OS }}" = "Windows" ]; then
74
- export BUILD_SUFFIX="";
75
72
export CSC_LINK="${{ runner.temp }}/signing_certificate.pfx"
76
73
npm config set msvs_version 2017 --global
77
74
echo "${{ secrets.WINDOWS_SIGNING_CERTIFICATE_PFX }}" | base64 --decode > "$CSC_LINK"
81
78
fi
82
79
83
80
yarn --cwd ./electron/packager/
84
- yarn --cwd ./electron/packager/ package
85
-
86
- export BUILD_PREFIX="stable"
87
- if [ "$IS_NIGHTLY" = true ]; then
88
- export BUILD_PREFIX="nightly"
89
- fi
90
-
91
- mv electron/build/dist/latest-$BUILD_SUFFIX.yml electron/build/dist/$BUILD_PREFIX-$BUILD_SUFFIX.yml
92
- rm electron/build/dist/alpha* electron/build/dist/beta*
81
+ yarn --cwd ./electron/packager/ package
93
82
94
83
- name : Upload [GitHub Actions]
95
84
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function getChannel() {
106
106
return 'nightly' ;
107
107
}
108
108
109
- return 'none ' ;
109
+ return '' ;
110
110
}
111
111
112
112
function timestamp ( ) {
You can’t perform that action at this time.
0 commit comments