Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
9.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 committed Nov 18, 2019
1 parent 5688c82 commit d4348ad
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 29 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- name: Use Node.js ${{ matrix.node-version }}
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.SNAP_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
Expand All @@ -33,12 +38,15 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn
- run: yarn lint
- name: Get tag name
run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//}
if: startsWith(github.ref, 'refs/tags/')
- run: yarn dist
env:
CI: true
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REACT_APP_LICENSE_SECRET: ${{ secrets.REACT_APP_LICENSE_SECRET }}
REACT_APP_OCR_SPACE_API_KEY: ${{ secrets.REACT_APP_OCR_SPACE_API_KEY }}
REACT_APP_YANDEX_DICTIONARY_API_KEY: ${{ secrets.REACT_APP_YANDEX_DICTIONARY_API_KEY_LINUX }}
REACT_APP_YANDEX_TRANSLATE_API_KEY: ${{ secrets.REACT_APP_YANDEX_TRANSLATE_API_KEY_LINUX }}
SNAP_TOKEN: ${{ secrets.SNAP_TOKEN }}
REACT_APP_YANDEX_TRANSLATE_API_KEY: ${{ secrets.REACT_APP_YANDEX_TRANSLATE_API_KEY_LINUX }}
10 changes: 7 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ on:
jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- name: Use Node.js ${{ matrix.node-version }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
Expand All @@ -33,16 +34,19 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn
- run: yarn lint
- name: Get tag name
run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//}
if: startsWith(github.ref, 'refs/tags/')
- run: yarn dist
env:
CI: true
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
GH_REF: ${{ github.ref }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REACT_APP_LICENSE_SECRET: ${{ secrets.REACT_APP_LICENSE_SECRET }}
REACT_APP_OCR_SPACE_API_KEY: ${{ secrets.REACT_APP_OCR_SPACE_API_KEY }}
REACT_APP_YANDEX_DICTIONARY_API_KEY: ${{ secrets.REACT_APP_YANDEX_DICTIONARY_API_KEY_MAC }}
REACT_APP_YANDEX_TRANSLATE_API_KEY: ${{ secrets.REACT_APP_YANDEX_TRANSLATE_API_KEY_MAC }}
REACT_APP_YANDEX_TRANSLATE_API_KEY: ${{ secrets.REACT_APP_YANDEX_TRANSLATE_API_KEY_MAC }}
7 changes: 6 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ on:
jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- name: Use Node.js ${{ matrix.node-version }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
Expand All @@ -33,9 +34,13 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn
- run: yarn lint
- name: Get tag name
run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//}
if: startsWith(github.ref, 'refs/tags/')
- run: yarn dist
env:
CI: true
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REACT_APP_LICENSE_SECRET: ${{ secrets.REACT_APP_LICENSE_SECRET }}
REACT_APP_OCR_SPACE_API_KEY: ${{ secrets.REACT_APP_OCR_SPACE_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ baseurl: "" # the subpath of your site, e.g. /blog
url: "https://translatiumapp.com" # the base hostname & protocol for your site, e.g. http://example.com

# Custom
translatium_version: 9.4.1
translatium_version: 9.4.2

# Build settings
markdown: kramdown
Expand Down
5 changes: 0 additions & 5 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
<p>All Your Apps in One Single Window.</p>
</a>
<hr class="dropdown-divider">
<a class="dropdown-item" href="https://quanglam2807.com/latte">
<img src="{{ '/images/latte-logo.png' | relative_url }}" alt="Latte">
<p>Distraction-Free Daily News Briefing.</p>
</a>
<hr class="dropdown-divider">
<a class="dropdown-item" href="https://quanglam2807.com">
<img src="/images/quanglam-logo.png" alt="Quang Lam">
</a>
Expand Down
Binary file removed docs/images/latte-logo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "translatium",
"description": "Translate Any Languages like a Pro",
"version": "9.4.1",
"version": "9.4.2",
"main": "public/electron.js",
"repository": "https://github.com/translatium/translatium",
"author": {
Expand All @@ -19,7 +19,7 @@
"build": "react-scripts build",
"test-ui": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"dist": "npm run build && babel-node packager.js",
"dist": "yarn run build && babel-node packager.js",
"lint": "eslint ./src ./public ./packager.js --ext js --fix",
"test": "mocha"
},
Expand Down
23 changes: 11 additions & 12 deletions packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ switch (process.platform) {
}
default:
case 'linux': {
targets = Platform.LINUX.createTarget(['snap', 'AppImage']);
targets = Platform.LINUX.createTarget(['AppImage', 'snap']);
break;
}
}
Expand Down Expand Up @@ -84,16 +84,16 @@ const opts = {
category: 'Utility',
packageCategory: 'utils',
},
publish: process.platform === 'linux' ? [
{
provider: 'snapStore',
channels: ['stable'],
},
'github',
] : undefined, // use default on non-linux platforms
snap: {
publish: [
{
provider: 'snapStore',
channels: ['edge'],
},
'github',
],
},
afterPack: ({ appOutDir }) => new Promise((resolve, reject) => {
console.log('afterPack', appOutDir, process.platform);

const languages = Object.keys(displayLanguages);

if (process.platform === 'darwin') {
Expand All @@ -108,12 +108,11 @@ const opts = {
}),
afterSign: (context) => {
// Only notarize app when forced in pull requests or when releasing using tag
const shouldNotarize = process.platform === 'darwin' && process.env.GH_REF && process.env.GH_REF.startsWith('refs/tags/v');
const shouldNotarize = process.platform === 'darwin' && context.electronPlatformName === 'darwin' && process.env.CI_BUILD_TAG;
if (!shouldNotarize) return null;

console.log('Notarizing app...');
// https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
console.log(context);
const { appOutDir } = context;

const appName = context.packager.appInfo.productFilename;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/node_modules/builder-util/out/util.js b/node_modules/builder-util/out/util.js
index deeeec2..14d41d4 100644
index 8064112..b6e3d81 100644
--- a/node_modules/builder-util/out/util.js
+++ b/node_modules/builder-util/out/util.js
@@ -503,7 +503,7 @@ function isEmptyOrSpaces(s) {
@@ -505,7 +505,7 @@ function isEmptyOrSpaces(s) {
}

function isTokenCharValid(token) {
Expand Down

0 comments on commit d4348ad

Please sign in to comment.