Skip to content

Commit ba1e8aa

Browse files
authored
Merge pull request #107 from rafajaques/deploy-tests
Fix #106
2 parents 69b9731 + ec96dc6 commit ba1e8aa

File tree

13 files changed

+62
-85
lines changed

13 files changed

+62
-85
lines changed

.travis.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,17 @@ addons:
2323
- icnsutils
2424
- graphicsmagick
2525
- xz-utils
26-
- gcc-multilib # for building 32 in 64 machine
27-
- g++-multilib # for building 32 in 64 machine
28-
- rpm # for building rpm pack
29-
- bsdtar # for building pacman
26+
- gcc-multilib
27+
- g++-multilib
28+
- rpm
29+
- bsdtar
3030
before_install:
3131
- npm install -g eslint eslint-config-airbnb
3232
install:
3333
- npm install
3434
after_success:
3535
- npm run dist:$TRAVIS_OS_NAME
36-
- ls dist/
37-
deploy:
38-
skip_cleanup: true
39-
provider: bintray
40-
file: "deploy/descriptor-$TRAVIS_OS_NAME.json"
41-
user: rafajaques
42-
on:
43-
branch: release
44-
key:
45-
secure: pfY4//jQB8KIqmNxZ9LXzeIWohn9K2At7NamxTdUKytnRhSn7RffYQuOCiBNgS3DPT91VHNaUkyAPsolye3O2NKo7DZLdkksVVeRM324fCPrXyL4CPZdCy5N5W8PrALsRN3XzuNHgP9ENdkOd4dCFBTlaunCvwdkcLkZFxzeSKMuDmRbOZuLz5049uWPs9hVeE/w8p99PQoSTPsnkIWZQbnSYbIxegXTGlb8O1NO2+oJJM4Gy/5C6xU8e7uvffysjqsjG4VO/8o0YpQabttdxfcmdf/u7CKDeoPPxYE4XHpxmFpKzRQ5tLqbKVx3Q2piWNTk0wQ51Udljpd5gDGCdhoZ04liU+H63+FH4ehHzIVFCxoOEBq0wfvJnGJh6/Y4a8ZDmLAoBIsiyiGTEe21Oav7EeGmeYHAqnD0Wx4dB3rbIPh4GfVkVmU3fUeGU3UfM6/zboPTO+hR9I+2LLS/s6ucL32EArae1lTzwtlfTTGiTOYwAVS95INSIE58Fzq/bzWLEmh7Be+AtrEB6/z+npBgQCXoKTBZvI3fe4tpU9IUCQMTl/BVKEKIURGa0NOxc+Jt300TkfYkHzfRTsm8P3JrWMIz20vHQ4u4jVAS9meaDlp8B9Wsh/wCGvMM3D2X32lnVF1uwjSHZmJ4ga1tU9Fbf24oMf41xNcsX+ACaMA=
36+
- ls dist/$TRAVIS_OS_NAME
37+
env:
38+
global:
39+
secure: ZAAQcyMG0qqLSUYAkvIG3r6MuumuD4DiYasIdqFE6XuidwcyRVPNIR2znPp2Rxt6b+qfs0J8L86YsgzbCdj8zRqoifg3e4T9tWh7oCK4KkrkxS0V7vJ5tlRpN2Z/6nAk7I1eaC4gpdDvuZUeiKX+Hy/K4uDffR7w2PNCSh2oRV8pyKstpvc3Jcp8+59xiTpF+0fX2wahG5vYlg5hq2ilaG97lwOgkkb7ODUm2Cr2kGqeIcUJBvrniabKPkZXkiBrbk44cnITDa9xvVR+jbbPRpqtC9jr9XmYK9q4XDx5VTFfh5dXEAL5A3CxyzgzYL83utl4EBCMbWFUW1PPoDFKXO4D5dSuyDXTNdrzrLYQCe/o6ceVVZ3quCQZieAfUm7JJ9ZHVr/PPAIlwfNdw1heJeJ629+ynyr2SLLclVWySTf1yJ6bCZKUGpAAI01Ri89p2BpqpIHpcSJknxjKjPN+i+9QxuTiDZijjTFiQLhLIfzaskeY7TjmfyNtCqADSyfrzpB+dPBjtja2yN8tRtLlMjL+ZFEb933F4wZaZsGxhGlplgDovY5yrGrJtcBu07kapb60NlWU5xy0RMWC69pRsVb2RdqnzWWXW5w6rJBK0bPc5uIxQW1fumCWWkj8f8SdpNmraghGFSjF5IBh0WQ3LpppJDDXm/oo+MmQaeIlPOA=

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![Travis Build Status](https://travis-ci.org/rafajaques/php-assistant.svg?branch=master)](https://travis-ci.org/rafajaques/php-assistant)
66
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/r4wsabo0ury7a5kg?svg=true)](https://ci.appveyor.com/project/rafajaques/php-assistant)
7+
[![Latest release](https://img.shields.io/github/tag/rafajaques/php-assistant.svg)](https://github.com/rafajaques/php-assistant/releases)
78
[![Dependency Status](https://david-dm.org/rafajaques/php-assistant.svg?path=app)](https://david-dm.org/rafajaques/php-assistant?path=app)
89
[![devDependency Status](https://david-dm.org/rafajaques/php-assistant/dev-status.svg)](https://david-dm.org/rafajaques/php-assistant#info=devDependencies)
910
[![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)
@@ -20,11 +21,11 @@ The main goal is to have a simple app to test small pieces of code without havin
2021

2122
You will find the most recent releases at Bintray repositories. Remember that PHP Assistant is still in development, so you may find bugs during its utilization. In case of problem, open an [issue](https://github.com/rafajaques/php-assistant/issues).
2223

23-
Mac OSX [![OSX Download](https://api.bintray.com/packages/rafajaques/mac-osx/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/mac-osx/php-assistant/_latestVersion#files)
24-
25-
Debian/Ubuntu/Mint [![DEB Download](https://api.bintray.com/packages/rafajaques/deb/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/deb/php-assistant/_latestVersion#files)
26-
27-
Windows [![Windows Download](https://api.bintray.com/packages/rafajaques/windows/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/windows/php-assistant/_latestVersion#files)
24+
[![Mac OSX Download](https://img.shields.io/badge/download-Mac%20OSX-blue.svg)](link)
25+
[![Debian/Ubuntu/Mint 32](https://img.shields.io/badge/download-Debian%2FUbuntu%2FMint%20(32)-blue.svg)](link)
26+
[![Debian/Ubuntu/Mint 64](https://img.shields.io/badge/download-Debian%2FUbuntu%2FMint%20(64)-blue.svg)](link)
27+
[![Windows 32 Download](https://img.shields.io/badge/download-Windows%20(32)-blue.svg)](link)
28+
[![Windows 64 Download](https://img.shields.io/badge/download-Windows%20(64)-blue.svg)](link)
2829

2930
## Building
3031

app/locales/da.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"Requires restart": "Kræver genstart",
3333
"Presentation mode": "Præsentations mode",
3434
"Auto run code": "Auto kør kode",
35-
"Actions": "Actions",
3635
"Toggle mode": "Skift mode",
3736
"Edit": "Rediger",
3837
"Undo": "Fortryd",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/de.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"Tray only": "Nur Taskleiste",
3131
"Regular + Tray": "Normal + Taskleiste",
3232
"Requires restart": "Neustart erforderlich",
33-
"Actions": "Aktionen",
3433
"Toggle mode": "Modus umschalten",
3534
"Edit": "Bearbeiten",
3635
"Undo": "Rückgänig",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Bring All to Front",
5252
"Toggle mode": "Toggle mode",
5353
"Preferences": "Preferences",
54-
"Actions": "Actions",
5554
"PHP binary found!": "PHP binary found!",
5655
"Starting app...": "Starting app...",
5756
"PHP Assistant: First run check...": "PHP Assistant: First run check...",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/fr.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Bring All to Front",
5252
"Toggle mode": "Toggle mode",
5353
"Preferences": "Preferences",
54-
"Actions": "Actions",
5554
"PHP binary found!": "PHP binary found!",
5655
"Starting app...": "Starting app...",
5756
"PHP Assistant: First run check...": "PHP Assistant: First run check...",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/pt-BR.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Trazer todas para frente",
5252
"Toggle mode": "Alternar modo",
5353
"Preferences": "Preferências",
54-
"Actions": "Ações",
5554
"PHP binary found!": "Binário do PHP encontrado!",
5655
"Starting app...": "Iniciando a aplicação...",
5756
"PHP Assistant: First run check...": "PHP Assistant: Checagem da primeira execução...",
@@ -90,5 +89,6 @@
9089
"Update available": "Atualização disponível",
9190
"Check for updates automatically": "Procurar atualizações automaticamente",
9291
"Check for updates now": "Procurar atualizações agora",
93-
"Default font size": "Tamanho de fonte padrão"
92+
"Default font size": "Tamanho de fonte padrão",
93+
"File": "Arquivo"
9494
}

app/main.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ app.on('ready', () => {
7979
}
8080
});
8181

82+
/* In case of all windows are closed */
83+
app.on('window-all-closed', () => {
84+
app.quit();
85+
});
86+
8287
function startApp() {
8388
// Loading main HTML
8489
mainWindow.loadURL('file://' + Path.join(__dirname, 'index.html'));
@@ -254,7 +259,7 @@ function getExternalDisplayBounds() {
254259
function createMenu() {
255260
const template = [
256261
{
257-
label: i18n.__('Actions'),
262+
label: i18n.__('File'),
258263
submenu: [
259264
{
260265
label: i18n.__('Run code'),
@@ -369,6 +374,12 @@ function createMenu() {
369374
accelerator: 'CmdOrCtrl+M',
370375
role: 'minimize'
371376
},
377+
{
378+
label: i18n.__('Hide'),
379+
accelerator: 'CmdOrCtrl+H',
380+
role: 'hide',
381+
click: () => mainWindow.hide()
382+
},
372383
]
373384
},
374385
{

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phpassistant",
33
"productName": "PHP Assistant",
4-
"version": "0.0.9",
4+
"version": "0.0.10",
55
"main": "main.js",
66
"description": "A cross-platform desktop PHP runner",
77
"author": "Rafael Jaques <rafael@phpit.com.br>",

appveyor.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,24 @@
1-
version: 0.4.{build}
2-
1+
version: 0.5.{build}
32
platform:
43
- x64
5-
64
cache:
75
- node_modules
86
- app\node_modules
97
- '%APPDATA%\npm-cache'
108
- '%USERPROFILE%\.electron'
11-
129
init:
1310
- git config --global core.autocrlf input
14-
1511
install:
1612
- git reset --hard HEAD
1713
- npm install npm -g
1814
- npm install electron-builder@next # force install next version to test electron-builder
1915
- npm install
2016
- npm prune
21-
2217
build_script:
2318
- node --version
2419
- npm --version
2520
- npm run dist:win
26-
27-
artifacts:
28-
- path: dist\win\*.exe
29-
name: win64-installer
30-
type: zip
31-
- path: dist\win-ia32\*.exe
32-
name: win32-installer
33-
type: zip
34-
# - path: dist\win-unpacked
35-
# name: win64-standalone
36-
# type: zip
37-
# - path: dist\win-ia32-unpacked
38-
# name: win32-standalone
39-
# type: zip
40-
41-
deploy:
42-
- provider: BinTray
43-
username: rafajaques
44-
api_key:
45-
secure: C3BCPbZfcKkbEDdCofae+VImfUy5XlMoZueo0N2HT7Bf8H0QiWS6SQ/XpMdEiFvy
46-
subject: rafajaques
47-
repo: windows
48-
package: "php-assistant"
49-
version: 0.0.9
50-
publish: true
51-
override: true
52-
explode: true
53-
on:
54-
branch: release
55-
21+
environment:
22+
GH_TOKEN:
23+
secure: SsWMU6aC2YeEqjKERctSLqPZOLjTlmjkj5df53e8kvWhW8BRvboGNz0Pp43yUMcq
5624
test: off

0 commit comments

Comments
 (0)