mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
19 lines
545 B
JavaScript
19 lines
545 B
JavaScript
const path = require('path')
|
|
if (process.arch === 'arm64' && process.platform === 'darwin') {
|
|
require('dotenv').config({
|
|
path: '.env.arm.mac',
|
|
})
|
|
}
|
|
|
|
const CRX_PATH = path.resolve(__dirname, 'dist')
|
|
|
|
module.exports = {
|
|
launch: {
|
|
// set by mujo-code/puppeteer-headful on GitHub actions
|
|
// also for usages on ARM chip Mac
|
|
executablePath: process.env.PUPPETEER_EXEC_PATH,
|
|
// required for enabling extensions
|
|
headless: false,
|
|
args: [`--disable-extensions-except=${CRX_PATH}`, `--load-extension=${CRX_PATH}`],
|
|
},
|
|
}
|