Skip to content

Commit

Permalink
fix: jsdocs in build
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Oct 1, 2024
1 parent 6667704 commit 935accd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion build-win-tenderly.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//@ts-check

/**
* This script is used to build the electron app **with notarization**. It is used for the final build and release process.
*/
Expand All @@ -7,7 +9,7 @@ const build = require('electron-builder').build;
const main = async () => {
console.log('Building...');

/** @type import {CliOptions} from "electron-builder" */
/** @type {import('electron-builder').CliOptions} */
await build({
publish: 'onTag',
config: {
Expand Down
5 changes: 3 additions & 2 deletions build-win.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// @ts-check
/**
* This script is used to build the electron app **with notarization**. It is used for the final build and release process.
*/
require('dotenv').config();
const build = require('electron-builder').build;

const { githubPublishOptions } = require('./electron/constants');
const { githubPublishOptions } = require('./electron/constants/config');


function artifactName() {
Expand All @@ -16,7 +17,7 @@ function artifactName() {
const main = async () => {
console.log('Building...');

/** @type import {CliOptions} from "electron-builder" */
/** @type {import('electron-builder').CliOptions} */
await build({
publish: 'onTag',
config: {
Expand Down
1 change: 0 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
require('dotenv').config();
const build = require('electron-builder').build;
const { isDev } = require('./electron/constants');
const { githubPublishOptions } = require('./electron/constants/config');

/**
Expand Down
5 changes: 2 additions & 3 deletions build.tester.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { githubPublishOptions } = require("./electron/constants/config");

//@ts-check
/**
* This script is used to build the electron app **without** notarization.
*
Expand All @@ -12,7 +11,7 @@ const build = require("electron-builder").build;
const main = async () => {
console.log("Building...");

/** @type import {CliOptions} from "electron-builder" */
/** @type {import('electron-builder').CliOptions} */
await build({
publish: "never",
config: {
Expand Down

0 comments on commit 935accd

Please sign in to comment.