Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.11k stars 3.33k forks source link

tinker不支持m1芯片SevenZip-1.2.20-osx-aarch_64.exe,造成无法编译。 #1528

Open anynew opened 3 years ago

anynew commented 3 years ago

Issue/提问须知

你好,在编译时报找不到远程SevenZip-1.2.20-osx-aarch_64.exe,经发现是Jcenter并没有支持的m1芯片的资源文件,麻烦官网可否支持一下支持m1芯片(MacBook Pro)的资源。 ` FAILURE: Build failed with an exception.

`


经查JCenter地址:https://jcenter.bintray.com/com/tencent/mm/SevenZip/1.2.20/下面
SevenZip-1.2.20-javadoc.jar
SevenZip-1.2.20-linux-x86_32.exe
SevenZip-1.2.20-linux-x86_64.exe
SevenZip-1.2.20-osx-x86_64.exe
SevenZip-1.2.20-sources.jar
SevenZip-1.2.20-windows-x86_32.exe
SevenZip-1.2.20-windows-x86_64.exe
SevenZip-1.2.20.jar
SevenZip-1.2.20.pom

发现并无SevenZip-1.2.20-osx-aarch_64.exe版本,希望官方能支持一下

异常类型:编译异常

手机型号:无

手机系统版本:无

tinker版本:如:1.7.7

gradle版本:如:6.10

是否使用热更新SDK: 如 TinkerPatch SDK 或者 Bugly SDK

系统:如:MacBook Pro M1 chip
sharpidea commented 3 years ago

还没更新吗

cikichen commented 3 years ago

mac和liunx自己命令行安装7za压缩软件,然后gradle里面屏蔽掉artifact = 'com.tencent.mm:SevenZip:1.2.13,这玩意只考虑过win开发,没考虑linux系统

或者加个判断

def isWindows() {
    return org.gradle.internal.os.OperatingSystem.current().isWindows()
}

    sevenzip {
        if (isWindows()) {
            artifact = 'com.tencent.mm:SevenZip:1.2.13'
        }
    }