I know this is going to sound so dumb because I am new into software developing. I have found this GitHub repository which I plan to modify. Let's just say I fork this repository and modify it. How would I then be able to export it from there. By export it I meant turn all of those files into one windows executable file. Thanks.
2 Answers
There is no universal solution. There are too many programming languages, frameworks and build systems.
Since this is a JavaScript project that comes with a package.json
, let’s take look:
"scripts": {
"start": "electron src/index.js",
"pack": "electron-builder --dir",
"dist": "electron-builder -mwl"
},
We’re in luck: The author has defined some sensible scripts for testing the application and packing it for distribution. It appears this project uses electron-builder.
If you run...
npm start
, you can test the application.npm run pack
, you get a directory with the contents of the package without really packing it.npm run dist
, redistributable packages are created.
When creating the package, you receive, ...
- a macOS
.dmg
file with an app. - a macOS
.zip
file with an app. - a Linux self-contained
.AppImage
file. - a Windows installer (NSIS).
It may not be possible to build for all platforms on all platforms.
-
-
Yes. But if you don’t know that, you should probably start a lot smaller. Get to know JavaScript and NodeJS first, then use some NPM modules and then maybe start hacking away at this project.– Daniel BAug 26, 2019 at 6:30
-
When I enter the following npm commands I am just getting a bunch of errors. Do you know why this is happening?– fhztAug 26, 2019 at 11:44
-
You probably didn’t run
npm install
ornpm ci
. Like I said: If you have no experience, get familiar with the field first.– Daniel BAug 27, 2019 at 11:05 -
To export a Github repository, click the "Clone or download" button, then choose "Download ZIP". You will find the sources in the downloaded Zip file.
To download the released .exe
file, click the "releases" button.
In the Releases webpage
you will find the
PlayMe.Setup.1.0.3.exe
file that you can download.
-
Thanks. What I want to do is though make a modified version of the software and then turn all of those files into one windows executable file.– fhztAug 25, 2019 at 22:49