๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Development/Electron

[Electron]Electron-forge

by DevIseo 2023. 1. 12.

Publishing a GitHub release

Electorn-Forge

  • electron forge๋Š” publisher ํ”Œ๋Ÿฌ๊ทธ์ธ

Github access token ์ƒ์„ฑํ•˜๊ธฐ

  • electorn forge๋Š” github permission ์—†์ด ์–ด๋–ค repository์—๋„ publish ํ•  ์ˆ˜ ์—†์Œ
  • Forge์˜ github releases ํ—ˆ๊ฐ€๋ฅผ ์œ„ํ•ด authenticated token์ด ํ•„์š”ํ•จ
  • ๊ฐ€์žฅ ์‰ฌ์šด ๋ฐฉ๋ฒ•์€ public_repo์™€ ํ•จ๊ป˜ PAT๋ฅผ ์ƒ์„ฑํ•ด public repo์— ์ ‘๊ทผํ•ด ์“ธ ์ˆ˜ ์žˆ๊ฒŒ ํ•จ
  • ๋ฐœ๊ธ‰ ๋ฐ›์€ ๋น„๋ฐ€๋กœ ์œ ์ง€๋˜์–ด์•ผ๋งŒ ํ•จ!

forge์—์„œ github publisher ์„ธํŒ…ํ•˜๊ธฐ

npm install --save-dev @electron-forge/publisher-github
  • forge.config.js ์„ค์ •ํ•˜๊ธฐ
module.exports = {
  publishers: [
    {
      name: '@electron-forge/publisher-github',
      config: {
        repository: {
          owner: 'github-user-name',
          name: 'github-repo-name',
        },
				#GITHUB_ACCESS_TOKEN
				authToken: process.env.GITHUB_TOKEN,
        prerelease: false,
        draft: true,
      },
    },
  ],
}
  • authentication token ์„ค์ •ํ•˜๊ธฐ
    • authentication token์„ Publisher๊ฐ€ ์ธ์ง€ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š” ๊ฒŒ ํ•„์š”
    • ๊ธฐ๋ณธ์ ์œผ๋กœ GITHUB_TOKEN environment variable ์„ค์ • ํ•ด์•ผ ํ•จ.
  • publish
npm run publish

'Development > Electron' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Electron] ipcRenderer.invoke & ipcMin.handle  (0) 2023.06.15
[Electron] dialog.showOpenDialog()  (0) 2023.06.15
[Electron] electron ์•„์ด์ฝ˜ ๋„ฃ๊ธฐ  (0) 2023.01.25
[Electron] Electron + React ์—ฐ๋™ํ•˜๊ธฐ  (0) 2023.01.13
[Electron]Electron  (0) 2023.01.11

๋Œ“๊ธ€