代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Netron 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
.PHONY: test
build: clean lint build_python build_electron
publish: clean lint publish_github_electron publish_python publish_github_pages publish_cask
install:
rm -rf ./node_modules
rm -rf ./package-lock.json
npm install
clean:
rm -rf ./build
reset:
rm -rf ./build
rm -rf ./node_modules
rm -rf ./third_party
rm -rf ./package-lock.json
update:
@[ -d node_modules ] || npm install
./tools/update
build_python:
@[ -d node_modules ] || npm install
python3 ./setup.py build --version
build_electron:
@[ -d node_modules ] || npm install
npx electron-builder install-app-deps
npx electron-builder --mac --linux --win
lint:
@[ -d node_modules ] || npm install
npx eslint src/*.js test/*.js
test:
@[ -d node_modules ] || npm install
node ./test/test.js
start:
@[ -d node_modules ] || npm install
npx electron .
publish_python:
@[ -d node_modules ] || npm install
python3 ./setup.py build --version bdist_wheel
python3 -m pip install --user keyring
python3 -m pip install --user twine
twine upload build/dist/*
publish_github_electron:
@[ -d node_modules ] || npm install
npx electron-builder install-app-deps
npx electron-builder --mac --linux --win --publish always
publish_github_pages:
@[ -d node_modules ] || npm install
python3 ./setup.py build --version
rm -rf ./build/gh-pages
git clone git@github.com:lutzroeder/netron.git ./build/gh-pages --branch gh-pages
rm -rf ./build/gh-pages/*
cp -R ./build/lib/netron/* ./build/gh-pages/
rm -rf ./build/gh-pages/*.py
rm -rf ./build/gh-pages/*.pyc
rm -rf ./build/gh-pages/netron
mv ./build/gh-pages/view-browser.html ./build/gh-pages/index.html
@export PACKAGE_VERSION=`node -pe "require('./package.json').version"`; \
sed -i -e "s/<!-- meta -->/<meta name='version' content='$$PACKAGE_VERSION' \/>/g" ./build/gh-pages/index.html
git -C ./build/gh-pages add --all
git -C ./build/gh-pages commit --amend --no-edit
git -C ./build/gh-pages push --force origin gh-pages
publish_cask:
@curl -H "Authorization: token $(GITHUB_TOKEN)" https://api.github.com/repos/Homebrew/homebrew-cask/forks -d ''
@export PACKAGE_VERSION=`node -pe "require('./package.json').version"`; \
cask-repair --cask-version $$PACKAGE_VERSION --blind-submit netron
@curl -H "Authorization: token $(GITHUB_TOKEN)" -X "DELETE" https://api.github.com/repos/lutzroeder/homebrew-cask
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。