Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest a little bit code modification to support latest version of package androidbinary and remove changepath of fafa-home due to it seems not working for my firefox browser. #196

Open
hkcoldtea opened this issue Jan 29, 2024 · 0 comments

Comments

@hkcoldtea
Copy link

diff --git a/assets/index.html b/assets/index.html
index 2dc0e88..17354bc 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -88,7 +88,7 @@



    •      <a v-on:click='changePath("/", $event)' href="/"><i class="fa fa-home"></i></a>
      
    •      <a href="[[.Prefix]]/"><i class="fa fa-home"></i></a>
         </li>
         <li v-for="bc in breadcrumb.slice(0, breadcrumb.length-1)">
           <a v-on:click='changePath(bc.path, $event)' href="{{bc.path}}">{{bc.name}}</a>
      

    diff --git a/httpstaticserver.go b/httpstaticserver.go
    index 694ef59..02d5178 100644
    --- a/httpstaticserver.go
    +++ b/httpstaticserver.go
    @@ -32,7 +32,7 @@ type ApkInfo struct {
    PackageName string json:"packageName"
    MainActivity string json:"mainActivity"
    Version struct {

    •           Code int    `json:"code"`
      
    •           Code int32  `json:"code"`
                Name string `json:"name"`
        } `json:"version"`
      

    }
    @@ -318,8 +318,8 @@ func parseApkInfo(path string) (ai *ApkInfo) {
    ai = &ApkInfo{}
    ai.MainActivity, _ = apkf.MainActivity()
    ai.PackageName = apkf.PackageName()

    •   ai.Version.Code = apkf.Manifest().VersionCode
      
    •   ai.Version.Name = apkf.Manifest().VersionName
      
    •   ai.Version.Code = apkf.Manifest().VersionCode.MustInt32()
      
    •   ai.Version.Name = apkf.Manifest().VersionName.MustString()
        return
      

    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant