export OHOS_SDK=/Users/faywong/Library/Huawei/Sdk/HarmonyOS-NEXT-DP1 cmake -DOHOS_STL=c++_shared -DOHOS_ARCH=armeabi-v7a -DOHOS_PLATFORM=OHOS -DCMAKE_TOOLCHAIN_FILE=${OHOS_SDK}/base/native/build/cmake/ohos.toolchain.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- environment setup
amalg - merge several lua scripts into standalone one net-url - url parser luash - invoke sh commands from lua
brew install --use-clang luarocks
luarocks install --server=http://luarocks.org/dev amalg net-url luash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CLion EAP: https://www.jetbrains.com/clion/nextversion/ | |
# ref: https://stackoverflow.com/questions/26584948/how-do-i-remove-my-intellij-license-in-2019-3 | |
rm -rf Library/Application Support/JetBrains/CLion* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# Script to install everything needed to build chromium (well, ideally, anyway) | |
# See https://chromium.googlesource.com/chromium/src/+/master/docs/linux/build_instructions.md | |
usage() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"config":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"},"project":{"appid":"wxd0ef619a89d9b761","appname":"mobileDevDaily","projectpath":"/Users/faywong/Downloads/wxapp_mobiledevdaily","projectid":"wxd0ef619a89d9b761_mobileDevDaily","app_head_img":"","app_nickname":"mobileDevDaily","is_admin":1,"isTourist":false,"urlCheck":false,"hash":685122098,"es6":true,"watcher":true,"editWebview":true,"newFeature":{"time":1484540945002,"show":false,"check":false},"initPath":{"enable":true,"page":"pages/index/index","query":""},"uploadPath":{"enable":false},"postcss":true},"url":"http://685122098.debug.open.weixin.qq.com/pages/index/index.html?","pageFrameTpl":"\n<!DOCTYPE html>\n<html lang=\"zh-CN\">\n\n<head>\n <link href=\"https://res.wx.qq.com/mpres/htmledition/images/favicon218877.ico\" rel=\"Shortcut Icon\">\n <meta http-equiv=\"Content-Security-Policy\" content=\"script-src 'self' *.qq.com 'unsafe-inline' 'unsafe-eval'\">\n |
安装 libxml2 之类的...
mkdir build-release
cd build-release
brew install python
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
pip install virtualenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((*env)->ExceptionCheck(env)) { | |
LOGE("faywong step 0-001, exception occured!"); | |
(*env)->ExceptionDescribe(env); | |
(*env)->ExceptionClear(env); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str.replace(/\\/g, '/'); |