Giter Site home page Giter Site logo

nsis help about electron-builder HOT 5 OPEN

ZadgeIsCool avatar ZadgeIsCool commented on May 24, 2024
nsis help

from electron-builder.

Comments (5)

MaximKalinin avatar MaximKalinin commented on May 24, 2024

Do you mean creating NSIS installer without using electron-builder? If that is the case, there's an official website with some examples and tutorials: https://nsis.sourceforge.io/Main_Page.

from electron-builder.

ZadgeIsCool avatar ZadgeIsCool commented on May 24, 2024

from electron-builder.

ZadgeIsCool avatar ZadgeIsCool commented on May 24, 2024

from electron-builder.

MaximKalinin avatar MaximKalinin commented on May 24, 2024

i stumbled upon this: https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z but it seems like its not it since its detected by avast antivirus

Yes, I think this is what electron-builder uses:

return getBinFromUrl("nsis", "3.0.4.1", "VKMiizYdmNdJOWpRGz4trl4lD++BvYP2irAXpMilheUP0pc93iKlWAoP843Vlraj8YG19CVn0j+dCo/hURz9+Q==")
export function getBinFromUrl(name: string, version: string, checksum: string): Promise<string> {
const dirName = `${name}-${version}`
let url: string
if (process.env.ELECTRON_BUILDER_BINARIES_DOWNLOAD_OVERRIDE_URL) {
url = process.env.ELECTRON_BUILDER_BINARIES_DOWNLOAD_OVERRIDE_URL + "/" + dirName + ".7z"
} else {
const baseUrl =
process.env.NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR ||
process.env.npm_config_electron_builder_binaries_mirror ||
process.env.npm_package_config_electron_builder_binaries_mirror ||
process.env.ELECTRON_BUILDER_BINARIES_MIRROR ||
"https://github.com/electron-userland/electron-builder-binaries/releases/download/"
const middleUrl =
process.env.NPM_CONFIG_ELECTRON_BUILDER_BINARIES_CUSTOM_DIR ||
process.env.npm_config_electron_builder_binaries_custom_dir ||
process.env.npm_package_config_electron_builder_binaries_custom_dir ||
process.env.ELECTRON_BUILDER_BINARIES_CUSTOM_DIR ||
dirName
const urlSuffix = dirName + ".7z"
url = `${baseUrl}${middleUrl}/${urlSuffix}`
}
return getBin(dirName, url, checksum)

There's quite a few things going on, the main directory containing the source code seems to be https://github.com/electron-userland/electron-builder/tree/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/src/targets/nsis and the one containing .nsh, .nsi templates is https://github.com/electron-userland/electron-builder/tree/fa6fc16040a93c6ee751a7a27ab6eeb1dbdd31a7/packages/app-builder-lib/templates/nsis.

What I believe can help you is git history: you could go through it searching for commits containing "nsis" or "windows installer". For example, here is the commit containing the early nsis implementation: 1779ac5.

from electron-builder.

ZadgeIsCool avatar ZadgeIsCool commented on May 24, 2024

from electron-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.