Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-latest, ubuntu-latest, windows-latest ]
os: [ macOS-13-xlarge, macOS-latest, ubuntu-latest, windows-latest ]
arch: [ x64, arm64 ]
# Exclude platforms we don't support
# Publishing artifacts for multiple Windows architectures has
# a bug which can cause the wrong architecture to be downloaded
# for an update, so until that is fixed, only build Windows x64
exclude:
- os: windows-latest
arch: arm64
# Only build arm64 builds on M1 and x86 builds on Intel Mac
- os: macOS-latest
arch: arm64
- os: macOS-13-xlarge
arch: x64

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-latest, ubuntu-latest, windows-latest ]
os: [ macOS-13-xlarge, macOS-latest, ubuntu-latest, windows-latest ]
arch: [ x64, arm64 ]
# Publishing artifacts for multiple Windows architectures has
# a bug which can cause the wrong architecture to be downloaded
# for an update, so until that is fixed, only build Windows x64
exclude:
- os: windows-latest
arch: arm64
# Only build arm64 builds on M1 and x86 builds on Intel Mac
- os: macOS-latest
arch: arm64
- os: macOS-13-xlarge
arch: x64

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const osxNotarize =
const osxSign = osxNotarize ? {} : undefined;

if (!osxNotarize) {
// eslint-disable-next-line no-console
console.log(
'Notarytool credentials not passed, skipping sign and notarize step for OSX.',
);
Expand Down Expand Up @@ -45,6 +46,7 @@ module.exports = {
// node_modules are necessary, but we have to strip binaries
if (path.includes('node_modules')) {
const ignoreNodeBinaries = '/node_modules/\\.bin($|/)';

return path.match(ignoreNodeBinaries);
}

Expand Down Expand Up @@ -81,7 +83,9 @@ module.exports = {
config: {
name: 'Replit',
icon: './assets/logo.icns',
overwrite: true,
overwrite: false,
// Set a different path for each architecture to avoid conflicts when uploading
dmgPath: process.arch === 'arm64' ? 'Replit.dmg' : 'Replit-Intel.dmg',
Comment thread
sergeichestakov marked this conversation as resolved.
additionalDMGOptions: {
'background-color': '#0E1525',
},
Expand Down