Skip to content

Commit

Permalink
Bump version to 0.10.1
Browse files Browse the repository at this point in the history
Build Windows distribution
  • Loading branch information
nukisman committed Sep 29, 2017
1 parent 845157b commit 1d57ff4
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.10.1

Windows support

## 0.10.0

Features:
Expand Down
2 changes: 1 addition & 1 deletion Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ writeCustomFile :: FilePath -> IO ()
writeCustomFile filepath = do
putStrLn $ "Generating " ++ filepath ++ "..."

desc <- readProcess "git" ["describe", "--abbrev=8", "--always"] ""
desc <- readProcess "git" ["--git-dir=./.git", "describe", "--abbrev=8", "--always"] ""
now <- readProcess "date" ["+%s"] ""

writeFile filepath $ unlines
Expand Down
2 changes: 1 addition & 1 deletion elm-format-short.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: elm-format-short
version: 0.10.0
version: 0.10.1

Synopsis:
A source code short formatter for Elm
Expand Down
2 changes: 1 addition & 1 deletion package/npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See `dreamwriter` app by `@rtfeldman`:
- [RightSidebar.elm](https://github.com/nukisman/elm-format-short/blob/master/tests/test-files/good/rtfeldman/dreamwriter/RightSidebar.elm)
- [WordGraph.elm](https://github.com/nukisman/elm-format-short/blob/master/tests/test-files/good/rtfeldman/dreamwriter/WordGraph.elm)

## Installation (currently Mac and Linux only)
## Installation

`npm i -g elm-format-short`

Expand Down
4 changes: 2 additions & 2 deletions package/npm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = binwrap({
urls: {
"darwin-x64": root + "-mac-x64.tgz",
"linux-x64": root + "-linux-x64.tgz",
// "win32-x64": root + "-win-i386.zip",
// "win32-ia32": root + "-win-i386.zip"
"win32-x64": root + "-win-i386.zip",
"win32-ia32": root + "-win-i386.zip"
}
});
2 changes: 1 addition & 1 deletion package/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elm-format-short",
"version": "0.10.0",
"version": "0.10.1",
"description": "Install elm-format-short",
"preferGlobal": true,
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions package/win/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

set -ex

VERSION="$(git describe --abbrev=8)"
VERSION="$(git --git-dir=./.git describe --abbrev=8)"
PLATFORM="win-i386"
BINEXT=".exe"

## Run tests

stack clean
#stack clean
#./tests/run-tests.sh # TODO !!!


Expand Down
27 changes: 26 additions & 1 deletion package/win/setup.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Prepare

```bash
brew tap caskroom/cask
brew cask install vagrant
Expand All @@ -24,8 +26,29 @@ choco install poshgit
#choco install tortoisegit
```

# Restart shell

# Build

## Open VirtualBox and show the Windows VM

## Unix

```bash
vagrant up
vagrant provision
vagrant plugin install vagrant-winrm
```

## Windows (Git-Bash)

```bash
cd /c/vagrant
stack clean

# Kill stack process. If need - restart windows

./package/win/build-package.sh
```

## Build Windows binary

Expand All @@ -39,6 +62,8 @@ git clean -dfx
## !! Make sure you are in package/win/elm-format-short !!
```



## Start Git Bash

```bash
Expand Down

0 comments on commit 1d57ff4

Please sign in to comment.