Skip to content

Commit

Permalink
v3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sidneys committed Jul 7, 2017
1 parent eff232a commit 1317e87
Show file tree
Hide file tree
Showing 58 changed files with 2,058 additions and 1,178 deletions.
63 changes: 20 additions & 43 deletions .appveyor.yml
Expand Up @@ -5,68 +5,45 @@ platform:

branches:
only:
- release

clone_depth: 3
- master

version: '{build}-{branch}'

environment:
DEBUG: electron-windows-installer:main

cache:
- 'node_modules'
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'

init:
- cmd: echo 🚦 Authorizing Build
- ps: if ($env:OS -eq "Windows_NT" -And $env:DEPLOY_WINDOWS -eq "0") { $host.SetShouldExit(0) }
- cmd: git config --global core.autocrlf input

install:
# NPM
- cmd: powershell -Command "Install-Product node '' x64"
- cmd: npm install --global npm
- cmd: npm install
- cmd: npm prune
# PACKAGE_NAME
- cmd: node -p "require('./package.json').productName" > PACKAGE_NAME.txt
- cmd: set /p PACKAGE_NAME=<PACKAGE_NAME.txt
- cmd: echo %PACKAGE_NAME%
# PACKAGE_VERSION
- cmd: node -p "require('./package.json').version" > PACKAGE_VERSION.txt
- cmd: set /p PACKAGE_VERSION=<PACKAGE_VERSION.txt
- cmd: echo %PACKAGE_VERSION%
- cmd: echo 🔧 Setting up Environment
- ps: Install-Product node 8.0.0
- cmd: npm --global update npm

before_build:
- cmd: echo 📥 Installing Dependencies
- cmd: npm install

build_script:
- cmd: npm run-script build
- cmd: echo 📦 Building
- cmd: npm run build --metadata

test: off
deploy_script:
- cmd: echo 📮 Deploying
- cmd: npm run deploy

artifacts:
- path: build\output\win\*.exe

deploy:
- provider: GitHub
tag: v$(PACKAGE_VERSION)
release: $(PACKAGE_NAME) v$(PACKAGE_VERSION)
description: $(PACKAGE_NAME)
auth_token:
secure: 'pAnN8TLqZboOiNe13JQLQ3xpw7h2+izRIOl8xkEZCj+iCHEWTKusULjcOwaWbOAt'
artifact: /.*\.exe/
draft: true
force_update: true
- path: build\output\*.exe
- path: build\output\*.yml

notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/4254b68cb8c0df23d61f
url: https://webhooks.gitter.im/e/f29f98b58ec67b5f0f59
method: GET
on_build_success: false
on_build_success: true
on_build_failure: true
on_build_status_changed: true
- provider: Webhook
url: https://updates-desktop-dimmer.herokuapp.com/webhook
method: POST
on_build_success: true
on_build_failure: false
on_build_status_changed: false

test: off
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -4,7 +4,7 @@ root = true
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Expand Down
59 changes: 59 additions & 0 deletions .github/CONTRIBUTING.md
@@ -0,0 +1,59 @@
# Contributing

## Creating Issues

To file bug reports and feature suggestions, use the [issues page](../../issues?q=is%3Aissue).

1. Make sure the issue has not been filed before.

1. [Create a new Issue](../../issues/new) by filling out the form.

1. If an issue requires more information and receives no further input, it will be closed.


## Creating Pull Requests

To create pull requests, use the [Pull Requests page](../../pulls).

1. [Create a new Issue](#creating-issues) describing the Bug or Feature you are addressing, to let others know you are working on it.

1. If a related issue exists, add a comment to let others know that you'll submit a pull request.

1. [Create a new Pull Request](../../pulls/new) by filling out the form.


### Setup

1. Fork the repository.
1. Clone your fork.
1. Make a branch for your change.
1. Run `npm install`.

## Commit Message

Use the AngularJS commit message format:

```
type(scope): subject
```

#### type
- `feat` New feature
- `fix` A bugfix
- `refactor` Code changes which are neither bugfix nor feature
- `docs`: Documentation changes
- `test`: New tests or changes to existing tests
- `chore`: Changes to tooling or library changes

#### scope
The context of the changes, e.g. `preferences-window` or `compiler`. Use consistent names.

#### subject
A **brief, yet descriptive** description of the changes, using the following format:

- present tense
- lowercase
- no period at the end
- describe what the commit does
- reference to issues via their id – e.g. `(#1337)`

2 changes: 1 addition & 1 deletion .jshintignore
@@ -1 +1 @@
resources/modules/**
resources/**
3 changes: 1 addition & 2 deletions .jshintrc
@@ -1,14 +1,13 @@
{
"browser": true,
"esnext": true,
"bitwise": true,
"bitwise": false,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"immed": false,
"indent": 4,
"latedef": true,
"loopfunc": true,
"noarg": true,
"quotmark": "single",
"undef": true,
Expand Down
39 changes: 19 additions & 20 deletions .travis.yml
Expand Up @@ -4,59 +4,58 @@ matrix:
osx_image: xcode8.2
sudo: required
- os: linux
dist: trusty
sudo: required
dist: trusty
group: edge
compiler: clang

language: c

branches:
only:
- release

env:
global:
- ARTIFACTS_DIRECTORY="build/output/"
- master

cache:
directories:
- "$HOME/.electron"
- "./node_modules"

addons:
apt:
packages:
- bsdtar
- icnsutils
- gcc-multilib
- g++-multilib
- gcc-multilib
- graphicsmagick
- icnsutils
- rpm
- xz-utils

before_install:
- echo "Installing nvm"
- curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR=$HOME/.nvm sh
- source $HOME/.nvm/nvm.sh
- nvm install 7.6.0
- nvm use 7.6.0
- echo "🚦 Authorizing Build"
- if [[ "${OSTYPE}" == "darwin"* ]] && [[ "${DEPLOY_MACOS}" == 0 ]]; then travis_terminate 0; fi
- if [[ "${OSTYPE}" == "linux"* ]] && [[ "${DEPLOY_LINUX}" == 0 ]]; then travis_terminate 0; fi
- echo "🔧 Setting up Environment"
- curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR="${HOME}"/.nvm sh
- source "${HOME}"/.nvm/nvm.sh && nvm install 8.0.0 && nvm use 8.0.0
- npm --global update npm

install:
- echo "Installing dependencies"
- echo "📥 Installing Dependencies"
- npm install

script:
- echo "Building artifacts"
- npm run-script build
- echo "📦 Building"
- npm run build --metadata

after_success:
- echo "Deploying artifacts"
- npm run-script deploy:github
- echo "📮 Deploying"
- npm run deploy

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a1a9de50af1c703bfe6c
- https://webhooks.gitter.im/e/24d905038aa07dda37df
on_success: change
on_failure: always
on_start: never

55 changes: 55 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,55 @@
# Contributing

## <a name="creating-issues"/></a> Creating Issues

To file bug reports and feature suggestions, use the ["Issues"](https://github.com/sidneys/pb-for-desktop/issues?q=is%3Aissue) page.

1. Make sure the issue has not been filed before.
1. Create a new issue by filling out [the issue form](https://github.com/sidneys/pb-for-desktop/issues/new).
1. If an issue requires more information and receives no further input, it will be closed.


## Creating Pull Requests

To create pull requests, use the ["Pull Requests"](https://github.com/sidneys/pb-for-desktop/pulls) page.

1. [Create a new Issue](#creating-issues) describing the Bug or Feature you are addressing, to let others know you are working on it.
1. If a related issue exists, add a comment to let others know that you'll submit a pull request.
1. Create a new pull request by filling out [the pull request form](https://github.com/sidneys/pb-for-desktop/pulls/compare).


### Setup

1. Fork the repository.
1. Clone your fork.
1. Make a branch for your change.
1. Run `npm install`.

## Commit Message

Use the AngularJS commit message format:

```
type(scope): subject
```

#### type
- `feat` New feature
- `fix` A bugfix
- `refactor` Code changes which are neither bugfix nor feature
- `docs`: Documentation changes
- `test`: New tests or changes to existing tests
- `chore`: Changes to tooling or library changes

#### scope
The context of the changes, e.g. `preferences-window` or `compiler`. Use consistent names.

#### subject
A **brief, yet descriptive** description of the changes, using the following format:

- present tense
- lowercase
- no period at the end
- describe what the commit does
- reference to issues via their id – e.g. `(#1337)`

6 changes: 3 additions & 3 deletions README.md
@@ -1,16 +1,16 @@
# Desktop Dimmer [![Beta](https://img.shields.io/badge/status-alpha-blue.svg?style=flat)]() [![travis](https://img.shields.io/travis/sidneys/desktop-dimmer.svg?style=flat)](https://travis-ci.org/sidneys/desktop-dimmer) [![appveyor](https://ci.appveyor.com/api/projects/status/oc57pq7hfslqg3ru?svg=true)](https://ci.appveyor.com/project/sidneys/desktop-dimmer) [![npm](https://img.shields.io/npm/v/desktop-dimmer.svg?style=flat)](https://npmjs.com/package/desktop-dimmer) [![dependencies](https://img.shields.io/david/sidneys/desktop-dimmer.svg?style=flat-square)](https://npmjs.com/package/desktop-dimmer) [![devDependencies](https://img.shields.io/david/dev/sidneys/desktop-dimmer.svg?style=flat-square)](https://npmjs.com/package/desktop-dimmer)

<p align="center">
<img height="250px" src="https://raw.githubusercontent.com/sidneys/desktop-dimmer/release/resources/graphics/icon.png"/><br><br>
<img height="250px" src="https://raw.githubusercontent.com/sidneys/desktop-dimmer/master/resources/graphics/icon.png"/><br><br>
<b>Enable darker-than-dark dimming for internal and external screens.</b><br>
Available for macOS, Windows and Linux (Beta).
</p>


------

![macOS](https://raw.githubusercontent.com/sidneys/desktop-dimmer/release/resources/screenshots/screenshot-macos.png)
![Windows 10](https://raw.githubusercontent.com/sidneys/desktop-dimmer/release/resources/screenshots/screenshot-win32.png)
![macOS](https://raw.githubusercontent.com/sidneys/desktop-dimmer/master/resources/screenshots/screenshot-macos.png)
![Windows 10](https://raw.githubusercontent.com/sidneys/desktop-dimmer/master/resources/screenshots/screenshot-win32.png)

------

Expand Down
17 changes: 17 additions & 0 deletions RELEASENOTES.json
@@ -0,0 +1,17 @@
{
"3.1.2": {
"🍾 features": [
"Adds new build & release system"
],
"📒 documentation": [
"Updated screenshots",
"Add developer templates"
],
"👷 internals": [
"Automates change log generation",
"Upgrades Electron to v1.7.4",
"Upgrades build system",
"Upgrades dependencies"
]
}
}
17 changes: 17 additions & 0 deletions RELEASENOTES.md
@@ -0,0 +1,17 @@
## 3.1.2

#### 🍾 Features

- Adds new build & release system

#### 📒 Documentation

- Updated screenshots
- Add developer templates

#### 👷 Internals

- Automates change log generation
- Upgrades Electron to v1.7.4
- Upgrades build system
- Upgrades dependencies

0 comments on commit 1317e87

Please sign in to comment.