Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
for electron v20 support
  • Loading branch information
ci7lus committed Aug 13, 2022
1 parent 1566bdb commit 29df4d7
Show file tree
Hide file tree
Showing 13 changed files with 660 additions and 192 deletions.
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.1)

project(WebChimera.js)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if(MSVC)
Expand Down
43 changes: 0 additions & 43 deletions appveyor.yml

This file was deleted.

32 changes: 0 additions & 32 deletions appveyor_prepare_full_archive.cmd

This file was deleted.

5 changes: 0 additions & 5 deletions build_electron.cmd

This file was deleted.

9 changes: 9 additions & 0 deletions build_electron.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$ELECTRON_VERSION = "20.0.2"

$Env:YARN_ENABLE_IMMUTABLE_INSTALLS = "false"
$Env:npm_config_wcjs_runtime = "electron"
$Env:npm_config_wcjs_runtime_version = $ELECTRON_VERSION.Replace("v", "") -replace "`t|`n|`r",""
$Env:npm_config_wcjs_arch = "x64"

yarn install
node rebuild.js
6 changes: 0 additions & 6 deletions build_electron.sh

This file was deleted.

12 changes: 12 additions & 0 deletions build_mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -eu
export ELECTRON_VER="20.0.2"
export BUILD_DIR="./build/Release"
export npm_config_wcjs_runtime=electron
export npm_config_wcjs_runtime_version=$ELECTRON_VER
npm_config_wcjs_arch=${npm_config_wcjs_arch:-}
if [[ -z "${npm_config_wcjs_arch}" ]]; then
export npm_config_wcjs_arch="$(arch | sed -e "s/i386/x64/")"
fi
node rebuild.js
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"url": "https://github.com/RSATom/WebChimera.js"
},
"dependencies": {
"bindings": "~1.2.1",
"cmake-js": "*"
"bindings": "~1.2.1"
},
"scripts": {
"install": "node rebuild.js"
}
"devDependencies": {
"cmake-js": "^6.3.2"
},
"packageManager": "yarn@1.22.17"
}
6 changes: 3 additions & 3 deletions rebuild.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function build() {
var cmakeJS = require("cmake-js");

var defaultRuntime = "nw";
var defaultRuntimeVersion = "0.12.3";
var defaultWinArch = "ia32";
var defaultRuntime = "electron";
var defaultRuntimeVersion = "20.0.2";
var defaultWinArch = "x64";

var options = {
runtime: process.env.npm_config_wcjs_runtime || undefined,
Expand Down
35 changes: 0 additions & 35 deletions travis_before_deploy.sh

This file was deleted.

12 changes: 0 additions & 12 deletions travis_before_install.sh

This file was deleted.

Loading

0 comments on commit 29df4d7

Please sign in to comment.