Skip to content

Commit

Permalink
justly updated
Browse files Browse the repository at this point in the history
  • Loading branch information
peranakanfrancis committed Jun 22, 2018
1 parent 8fdb753 commit 9a1d4dd
Show file tree
Hide file tree
Showing 6 changed files with 2,296 additions and 11 deletions.
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,76 @@ node_modules

*.sublime-project
*.sublime-workspace
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless
12 changes: 12 additions & 0 deletions config-original.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"osx" : {
"title": "Electronic Wechat",
"background": "icon.png",
"icon": "icon.icns",
"icon-size": 80,
"contents": [
{ "x": 438, "y": 344, "type": "link", "path": "/Applications" },
{ "x": 192, "y": 344, "type": "file" }
]
}
}
4 changes: 2 additions & 2 deletions scripts/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ function build() {
}

build darwin x64
build linux ia32
build linux x64
#build linux ia32
#build linux x64
#build win32 ia32
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fi

if [ "$#" -ne 2 ]; then
echo -e "Usage: ./script/build.sh <platform> <arch>"
echo -e " platform: darwin, linux, win32"
echo -e " arch: ia32, x64"
echo -e " platform: darwin"
echo -e " arch: x64"
exit 1
fi

Expand All @@ -27,7 +27,7 @@ fi

ignore_list="dist|scripts|\.idea|.*\.md|.*\.yml|node_modules/nodejieba"

electron-packager . "${APP_NAME}" --platform=$PLATFORM --arch=$ARCH --electronVersion=1.4.15 --app-version=1.4.0 --asar --icon=assets/icon.icns --overwrite --out=./dist --ignore=${ignore_list}
electron-packager . "${APP_NAME}" --platform=$PLATFORM --arch=$ARCH --electronVersion=1.8.7 --app-version=1.8.0 --asar --icon=assets/icon.icns --overwrite --out=./dist --ignore=${ignore_list}

if [ $? -eq 0 ]; then
echo -e "$(tput setaf 2)Packaging for $PLATFORM $ARCH succeeded.$(tput sgr0)\n"
Expand Down
12 changes: 6 additions & 6 deletions scripts/tar-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ echo 'Start compressing for Mac OS X.'
tar zcf 'mac-osx.tar.gz' 'Electronic WeChat-darwin-x64'
echo 'Compressing for Mac OS X succeed.'

echo 'Start compressing for Linux x64.'
tar zcf 'linux-x64.tar.gz' 'electronic-wechat-linux-x64'
echo 'Compressing for Linux x64 succeed.'
# echo 'Start compressing for Linux x64.'
# tar zcf 'linux-x64.tar.gz' 'electronic-wechat-linux-x64'
# echo 'Compressing for Linux x64 succeed.'

echo 'Start compressing for Linux ia32.'
tar zcf 'linux-ia32.tar.gz' 'electronic-wechat-linux-ia32'
echo 'Compressing for Linux ia32 succeed.'
# echo 'Start compressing for Linux ia32.'
# tar zcf 'linux-ia32.tar.gz' 'electronic-wechat-linux-ia32'
# echo 'Compressing for Linux ia32 succeed.'

cd ..
Loading

0 comments on commit 9a1d4dd

Please sign in to comment.