Skip to content

Commit

Permalink
chore: use fullname for the build target
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 24, 2021
1 parent 25343ca commit 0cf939c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions appveyor.yml
Expand Up @@ -49,7 +49,6 @@ for:

init:
- uname -a
- uname -i
- git --version
- git config --global core.autocrlf false
- git config --global user.name "AppVeyor"
Expand Down Expand Up @@ -315,7 +314,6 @@ for:

init:
- uname -a
- uname -i
- git --version
- git config --global core.autocrlf false
- git config --global user.name "AppVeyor"
Expand Down Expand Up @@ -361,7 +359,7 @@ for:
PACKAGE_NAME=`node -e "console.log(require('./src/package.json').name)"`
PACKAGE_VERSION=`node -e "console.log(require('./src/package.json').version)"`
PRODUCT_NAME=CNCjs
yarn build:mac-x64
yarn build:macos-x64
ls -al output output/*
mkdir -p releases/macos
cp -af "output/${PRODUCT_NAME}-${PACKAGE_VERSION}.dmg" "releases/macos/${PACKAGE_NAME}-${PACKAGE_VERSION}-macos.x64.dmg"
Expand Down Expand Up @@ -456,7 +454,7 @@ for:
$PACKAGE_VERSION = node -e "console.log(require('./src/package.json').version)"
$PRODUCT_NAME = "CNCjs"
mkdir -Force -Path releases\windows
yarn build:win-x64
yarn build:windows-x64
Get-ChildItem output
Copy-Item "output\${PRODUCT_NAME} Setup ${PACKAGE_VERSION}.exe" "releases\windows\${PACKAGE_NAME}-${PACKAGE_VERSION}-windows-x64.exe"
Get-ChildItem releases\windows
Expand All @@ -473,7 +471,7 @@ for:
$PACKAGE_VERSION = node -e "console.log(require('./src/package.json').version)"
$PRODUCT_NAME = "CNCjs"
mkdir -Force -Path releases\windows
yarn build:win-ia32
yarn build:windows-ia32
Get-ChildItem output
Copy-Item "output\${PRODUCT_NAME} Setup ${PACKAGE_VERSION}.exe" "releases\windows\${PACKAGE_NAME}-${PACKAGE_VERSION}-windows-x86.exe"
Get-ChildItem releases\windows
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -47,13 +47,13 @@
"electron-rebuild": "electron-rebuild",
"github-release": "github-release",
"package-sync": "node scripts/package-sync.js",
"build:mac-x64": "bash -c 'scripts/electron-builder.sh --mac --x64'",
"build:macos-x64": "bash -c 'scripts/electron-builder.sh --macos --x64'",
"build:linux-ia32": "bash -c 'scripts/electron-builder.sh --linux --ia32'",
"build:linux-x64": "bash -c 'scripts/electron-builder.sh --linux --x64'",
"build:linux-armv7l": "bash -c 'scripts/electron-builder.sh --linux --armv7l'",
"build:linux-arm64": "bash -c 'scripts/electron-builder.sh --linux --arm64'",
"build:win-ia32": "bash -c 'scripts/electron-builder.sh --win --ia32'",
"build:win-x64": "bash -c 'scripts/electron-builder.sh --win --x64'",
"build:windows-ia32": "bash -c 'scripts/electron-builder.sh --windows --ia32'",
"build:windows-x64": "bash -c 'scripts/electron-builder.sh --windows --x64'",
"start-electron": "electron ./dist/cncjs/main",
"start-prod": "npm run build-prod && NODE_ENV=production ./bin/cncjs",
"dev": "npm run build-dev && concurrently --names \"start-app-dev,start-server-dev\" \"npm run start-app-dev\" \"npm run start-server-dev\"",
Expand Down

0 comments on commit 0cf939c

Please sign in to comment.