diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ce3047..b01a880 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,11 @@ jobs: - name: Install dependencies run: npm install + + - name: Test ubuntu + if: ${{ matrix.os }} == 'ubuntu-latest' + run: | + echo "I am running only on ${{ matrix.os }}" - name: Decode Apple Developer certificate run: | diff --git a/build/notarize.js b/build/notarize.js index 2219085..de8f4a1 100644 --- a/build/notarize.js +++ b/build/notarize.js @@ -1,6 +1,6 @@ -const fs = require('fs'); -const path = require('path'); -const electronNotarize = require('@electron/notarize'); +const fs = require(`fs`); +const path = require(`path`); +const electronNotarize = require(`@electron/notarize`); module.exports = async function (context) { let params = { @@ -9,15 +9,15 @@ module.exports = async function (context) { }; if (!process.env.GITHUB_ACTIONS) { - const dotenv = require('dotenv'); - const result = dotenv.config({ path: path.join(__dirname, '.env') }); + const dotenv = require(`dotenv`); + const result = dotenv.config({ path: path.join(__dirname, `.env`) }); params = { ...params, appBundleId: process.env.APP_ID, appleId: process.env.APPLE_ID, appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD, - teamId: process.env.APPLE_TEAM_ID + teamId: process.env.APPLE_TEAM_ID, }; if (result.error) { @@ -27,23 +27,23 @@ module.exports = async function (context) { params = { ...params, keychain: process.env.KEYCHAIN, - keychainProfile: process.env.KEYCHAIN_PROFILE + keychainProfile: process.env.KEYCHAIN_PROFILE, }; } - if (process.platform !== 'darwin') { + if (process.platform !== `darwin`) { return; } const prefix = ` •`; - console.log(`${prefix} afterSign hook triggered for the ${context.packager.appInfo.productFilename}.app`); + console.log(`${prefix} afterSign hook triggered for notarizing the ${context.packager.appInfo.productFilename}.app`); if (!fs.existsSync(params.appPath)) { console.log(`${prefix} !! notarization process was skipped due to File not found`); return; } - console.log(`${prefix} notarizing App file at ${params.appPath}`); + console.log(`${prefix} notarizing started for the App file at ${params.appPath}`); try { await electronNotarize.notarize(params); @@ -51,5 +51,5 @@ module.exports = async function (context) { console.error(error); } - console.log(`${prefix} done notarizing for the ${context.packager.appInfo.productFilename}.app`); + console.log(`${prefix} notarizing finished successfully for the ${context.packager.appInfo.productFilename}.app`); }; diff --git a/main.js b/main.js index 61fa53c..96fe2c2 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,7 @@ const alert = (type, title, message, parentWindow = null) => { type, title, message, - buttons: ['OK'], + buttons: [`OK`], defaultId: 0, icon: type, }; diff --git a/package.json b/package.json index 3218e25..056f8a5 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,7 @@ { "target": "default", "arch": [ - "x64", - "arm64" + "universal" ] } ]