Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to GitKraken v6.5.x #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

45 changes: 0 additions & 45 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ end_of_line = crlf
[{package.json,*.yml,*.md}]
indent_style = space

[**/strings/*.json]
indent_style = space

[lib/*.json]
insert_final_newline = false

Expand Down
61 changes: 61 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"use strict";
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
},
extends: [
"standard",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "script",
},
rules: {
"comma-dangle": [
"error",
{
arrays: "always-multiline",
exports: "always-multiline",
functions: "never",
imports: "always-multiline",
objects: "always-multiline",
},
],
indent: [
"error",
"tab",
{
SwitchCase: 1,
},
],
"no-tabs": [
"off",
],
"no-var": [
"error",
],
"prefer-arrow-callback": [
"error",
],
"prefer-const": [
"error",
],
quotes: [
"error",
"double",
],
semi: [
"error",
"always",
{
omitLastInOneLineBlock: false,
},
],
strict: [
"error",
"safe",
],
},
};
73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

18 changes: 2 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,8 @@ cache:
- "$HOME/.cache"

install:
- npm install --ignore-scripts
- npm install

script:
- npm run create-patch
- npm run test
- npm run build
- npm run install
- ls patches && cat patches/*

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: Q52hIujo9j+sh7IjsICa29YNoasrnBwmBSmLOl+BWrl8Y2D333GQ71R7Gj8x5/KsClx/AzEPQM9f6yfUKdjaav1GGcidMIfHi746K6BQUPw2cGTj9zNwKJp8SEYLtwGSkxjQvrTTrdoIhKKQSSUbRk75QR5RwmfymLv6RxciUZsjcLSejJRd8EsJHWonbp4eGVpVbQhaCxmaVjmug89YpK0wcSjRZOkM4GehhpXNMQ815Ppi74r69HSw83RI2g3N40c75m+V4yKx7nNdiEVGrkNA/2n0ay/Oge4MQ0bRQukYDhHoNXiNilltE5r5S00Yoxn4Kw55/czhWgA7P4kqQ6Jf7/BpOB3FhcFDrWBVJELA/AdVdNUpw0EjA0if+k2FBBbHOPeoadCue30baQ0AIFFQncKs7q5l4CHFNsv3rYA4quuheKG6HZm2lJkH0fNdl052/pY+P0fMBLFbEc7CixDwQyEWsixqIM8OIz+NtYQHUTq1Hb5uEyuEdPRuSJqRiim/4A1cUx5QpyHE7Y1uICmDmtSlHwVsSzRV82w7Qs3FWuwWqLr1AoTHayqq80Rt4L68G2xotCn30RQZebzs9mU/ieyxTLruy+6VTQcxj1QQWAlbvghafbBfuvW1hPZokCKHuiPi8atTyfnViXFNe5RhFhFNHDWmXahu58ioob4=
file_glob: true
file: ./patches/*.patch
on:
all_branches: true
tags: true
- npm run translate
7 changes: 3 additions & 4 deletions README-ja.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GitKraken-i18n
[Gitkraken](https://www.gitkraken.com/download)非公式国際化プロジェクト

[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg?label=macOS)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg?label=Windows)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)
[![CircleCI](https://img.shields.io/circleci/project/github/gucong3000/gitkraken-i18n.svg?label=Linux)](https://circleci.com/gh/gucong3000/gitkraken-i18n)
[![NPM version](https://img.shields.io/npm/v/gitkraken-i18n.svg)](https://www.npmjs.com/package/gitkraken-i18n)
[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)

## Contents
- [English](README.md)
Expand All @@ -15,7 +15,6 @@
https://www.transifex.com/jumei/gitkraken-i18n/

## Requirement
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/ja/download/)

## Install
Expand Down
7 changes: 3 additions & 4 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GitKraken-i18n
[Gitkraken](https://www.gitkraken.com/download)非官方国际化项目

[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg?label=macOS)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg?label=Windows)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)
[![CircleCI](https://img.shields.io/circleci/project/github/gucong3000/gitkraken-i18n.svg?label=Linux)](https://circleci.com/gh/gucong3000/gitkraken-i18n)
[![NPM version](https://img.shields.io/npm/v/gitkraken-i18n.svg)](https://www.npmjs.com/package/gitkraken-i18n)
[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)

## Contents
- [English](README.md)
Expand All @@ -15,7 +15,6 @@
https://www.transifex.com/jumei/gitkraken-i18n/

## Requirement
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/zh-cn/download/)

## Install
Expand Down
7 changes: 3 additions & 4 deletions README-zh-TW.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GitKraken-i18n
[Gitkraken](https://www.gitkraken.com/download)非官方國際化項目

[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg?label=macOS)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg?label=Windows)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)
[![CircleCI](https://img.shields.io/circleci/project/github/gucong3000/gitkraken-i18n.svg?label=Linux)](https://circleci.com/gh/gucong3000/gitkraken-i18n)
[![NPM version](https://img.shields.io/npm/v/gitkraken-i18n.svg)](https://www.npmjs.com/package/gitkraken-i18n)
[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)

## Contents
- [English](README.md)
Expand All @@ -15,7 +15,6 @@
https://www.transifex.com/jumei/gitkraken-i18n/

## Requirement
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/zh-tw/download/)

## Install
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GitKraken-i18n
[Gitkraken](https://www.gitkraken.com/download) unofficial i18n project

[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg?label=macOS)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg?label=Windows)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)
[![CircleCI](https://img.shields.io/circleci/project/github/gucong3000/gitkraken-i18n.svg?label=Linux)](https://circleci.com/gh/gucong3000/gitkraken-i18n)
[![NPM version](https://img.shields.io/npm/v/gitkraken-i18n.svg)](https://www.npmjs.com/package/gitkraken-i18n)
[![Travis](https://img.shields.io/travis/gucong3000/gitkraken-i18n.svg)](https://travis-ci.org/gucong3000/gitkraken-i18n)
[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/gitkraken-i18n.svg)](https://ci.appveyor.com/project/gucong3000/gitkraken-i18n)

## Contents
- [English](README.md)
Expand All @@ -15,7 +15,6 @@
https://www.transifex.com/jumei/gitkraken-i18n/

## Requirement
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/en/download/)

## Install
Expand Down
30 changes: 9 additions & 21 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ version: "{build}"
skip_branch_with_pr: true
build: off

# Test against the latest version of this Node.js version
environment:
nodejs_version: "stable"
matrix:
- gitkraken_platform: win64
platform: x64
- gitkraken_platform: win32
platform: x86

cache:
- node_modules
- '%APPDATA%\npm-cache'
Expand All @@ -19,21 +10,18 @@ cache:
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version $env:platform
- ps: Install-Product node $env:nodejs_version x64
# install modules
- npm install --ignore-scripts
- npm install

build_script:
- npm run create-patch
- npm run test
- npm run translate

artifacts:
- path: 'patches\*.patch'
name: patch
- path: 'strings\*.json'
name: locales

- path: 'package-lock.json'
name: package-lock

deploy:
provider: GitHub
auth_token:
secure: 8hqStAGHShwpTpTvpJqw01bteLm0Z1Ob9MdFMevTlCJWb5iVXcr7dpOMGIaOdfSz
artifact: /.*\.patch/ # upload all git patch to release assets
on:
appveyor_repo_tag: true # deploy on tag push only
6 changes: 6 additions & 0 deletions src/download.js → download.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env node
"use strict";
const fs = require("fs-extra");
const path = require("path");
const os = require("os");

const platform = require("./platform");
const spawn = require("./spawn");
require("./handledRejection");

const URLS = {
win32: `https://release.gitkraken.com/${platform}/GitKrakenSetup.exe`,
Expand Down Expand Up @@ -85,6 +87,7 @@ async function download () {
console.log(`Downloading GitKraken from ${url}`);
await spawn([
"curl",
"--ssl-no-revoke",
"--fail",
"--insecure",
"--location",
Expand All @@ -99,6 +102,9 @@ async function download () {
});

console.log(`Installing Gitkraken ${fileName}`);
if (platform !== "win32") {
await fs.chmod(fileName, 0o777);
}
await INSTS[process.platform](fileName);
await fs.unlink(fileName);
}
Expand Down
Loading