Skip to content

Commit

Permalink
updated the readme
Browse files Browse the repository at this point in the history
also changed the command in the setup.go
  • Loading branch information
mjarkk committed Jul 19, 2018
1 parent ee59e27 commit 162586f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The ultimate goal of this project is to be able to run an .exe (Or whatever work
- Windows 10 x64

## Devolopment
Note all devlopment is dune in the [src](./src) dir
Note: all devlopment is dune in the [src](./src) dir
### Setup
- install [golang](https://golang.org/dl/)
- `$ go get github.com/akavel/rsrc`
Expand All @@ -17,6 +17,7 @@ Note all devlopment is dune in the [src](./src) dir
- execute `$ sh buildSetup.sh` using [git bash](https://git-scm.com/downloads) or [bash (Ubuntu, fedora, etc)](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
- Open the setup.exe file inside the build dir
### Make a relaese
NOTE: the release does NOT use the config.json, it uses the config.example.json as config.json because then you can test the build with a modifyied config.json and don't have to worry about releaseing a wrong config
- run `$ sh buildRelease.sh`

## Disclaimer
Expand Down
7 changes: 4 additions & 3 deletions src/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ type Config struct {
Programs []string `json:"programs"`
}

// Type structure to bind to config.
type Options struct {
PackageName string
}

// used when the program needs to stop because of an error
func die() {
// used when the program needs to stop because of an error
fmt.Println("press any key to exit the program.")
// Prevent the application from closing
fmt.Scanln()
os.Exit(0)
}

// Check if a array contains value
func contains(arr []string, str string) bool {
// Check if a array contains value
for _, a := range arr {
if a == str {
return true
Expand All @@ -45,8 +46,8 @@ func contains(arr []string, str string) bool {
return false
}

// Download a file from the internet
func DownloadFile(filepath string, url string) error {
// Download a file from the internet
out, err := os.Create(filepath)
if err != nil {
return err
Expand Down

0 comments on commit 162586f

Please sign in to comment.