mirror of
https://github.com/tp7309/TTDeDroid.git
synced 2026-10-17 05:10:39 +08:00
update to travis-ci.com
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
[run]
|
||||
source=.
|
||||
@@ -0,0 +1,10 @@
|
||||
version = 1
|
||||
|
||||
test_patterns = ["tests/test_*.py"]
|
||||
|
||||
[[analyzers]]
|
||||
name = "python"
|
||||
enabled = true
|
||||
|
||||
[analyzers.meta]
|
||||
runtime_version = "3.x.x"
|
||||
@@ -10,6 +10,7 @@ libs/**/README.md
|
||||
libs/**/LICENSE
|
||||
libs/**/LICENSE.txt
|
||||
libs/**/NOTICE
|
||||
repack.py
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
||||
+7
-4
@@ -1,13 +1,16 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
- "nightly"
|
||||
# command to install dependencies
|
||||
install:
|
||||
- pip install coveralls
|
||||
pip install -r requirements.txt
|
||||
pip install pytest-cov
|
||||
# command to run tests
|
||||
script: nosetests --with-coverage
|
||||
script: pytest --cov
|
||||
after_success:
|
||||
coveralls
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
Vendored
+1
-1
@@ -97,7 +97,7 @@
|
||||
"name": "Python: All debug Options",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"pythonPath": "${command:python.interpreterPath}",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"program": "${file}",
|
||||
"module": "module.name",
|
||||
"env": {
|
||||
|
||||
@@ -7,7 +7,8 @@ verify_ssl = true
|
||||
pyinstaller = "*"
|
||||
autopep8 = "*"
|
||||
flake8 = "*"
|
||||
nose2 = "*"
|
||||
pytest = "*"
|
||||
pytest-cov = "*"
|
||||
|
||||
[packages]
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# TTDeDroid
|
||||
[](https://travis-ci.org/tp7309/TTDeDroid)
|
||||
[](https://www.codacy.com/app/tp7309/TTDeDroid?utm_source=github.com&utm_medium=referral&utm_content=tp7309/TTDeDroid&utm_campaign=Badge_Grade)
|
||||
<!-- [](https://coveralls.io/github/tp7309/TTDeDroid?branch=master) -->
|
||||
README i18n: [中文说明](https://github.com/tp7309/AndroidOneKeyDecompiler/blob/master/README_zh_CN.md)
|
||||
[](https://travis-ci.com/tp7309/TTDeDroid)
|
||||
<!-- [](https://codecov.io/gh/tp7309/TTDeDroid) -->
|
||||
[](https://deepsource.io/gh/tp7309/TTDeDroid/?ref=repository-badge)
|
||||
README i18n: [中文说明](https://github.com/tp7309/TTDeDroid/blob/master/README_zh_CN.md)
|
||||
|
||||
The tool for quickly decompile **apk/aar/dex/jar**, will be updated depending on the update of libs.
|
||||
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
# TTDeDroid
|
||||
[](https://travis-ci.org/tp7309/TTDeDroid)
|
||||
[](https://www.codacy.com/app/tp7309/TTDeDroid?utm_source=github.com&utm_medium=referral&utm_content=tp7309/TTDeDroid&utm_campaign=Badge_Grade)
|
||||
<!-- [](https://coveralls.io/github/tp7309/TTDeDroid?branch=master) -->
|
||||
[](https://travis-ci.com/tp7309/TTDeDroid)
|
||||
<!-- [](https://codecov.io/gh/tp7309/TTDeDroid) -->
|
||||
[](https://deepsource.io/gh/tp7309/TTDeDroid/?ref=repository-badge)
|
||||
|
||||
一键反编译 **apk/aar/dex/jar**,没什么技术含量,只是调调工具命令,处理些兼容性问题,会视反编译库的更新情况更新工具版本。
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin python3
|
||||
import shutil
|
||||
import os
|
||||
import stat
|
||||
import subprocess
|
||||
|
||||
|
||||
_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
def readonly_handler(func, path, execinfo):
|
||||
# or os.chmod(path, stat.S_IWRITE) from "stat" module
|
||||
os.chmod(path, stat.S_IWRITE)
|
||||
func(path)
|
||||
|
||||
|
||||
def rmtree(path):
|
||||
if os.path.exists(path):
|
||||
rmtree(path, onerror=readonly_handler)
|
||||
|
||||
|
||||
def main():
|
||||
destdir = os.path.join(os.path.expanduser('~'), 'Downloads')
|
||||
zippath = os.path.join(destdir, "TTDeDroid.zip")
|
||||
|
||||
rmtree(zippath)
|
||||
# shutil.copy(_ROOT_PATH, destdir)
|
||||
subprocess.call("cp -r %s %s"%('_ROOT_PATH', destdir), shell=True)
|
||||
os.chdir(os.path.join(destdir, "TTDeDroid"))
|
||||
rmtree(".git")
|
||||
rmtree("sources")
|
||||
rmtree("cache")
|
||||
rmtree("dist")
|
||||
rmtree("build")
|
||||
rmtree(".vscode")
|
||||
rmtree(".history")
|
||||
rmtree("__pycache__")
|
||||
os.remove('.DS_Store')
|
||||
subprocess.call("7z a %s %s"%(os.path.join(destdir, "TTDeDroid"), zippath))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user