Giter VIP home page Giter VIP logo

Comments (4)

hubin97 avatar hubin97 commented on May 18, 2024

这更新后ipa路径如何配置, 不给个例子说明一下吗? 我这边试了都找不到路径? 无论是指向gym输出的文件夹还是ipa文件都没用

from fastlane-plugin-pgyer.

jicheng1014 avatar jicheng1014 commented on May 18, 2024

@hubin97 请参考下 https://github.com/shishirui/fastlane-plugin-pgyer/blob/master/lib/fastlane/plugin/pgyer/actions/pgyer_action.rb#L140-L152 这个是 fastlane-plugin 的标准参数列表, 里面有你需要的参数

from fastlane-plugin-pgyer.

hubin97 avatar hubin97 commented on May 18, 2024

@jicheng1014

我看了下文件中描述 ipa字段

 description: "Path to your IPA file. Optional if you use the _gym_ or _xcodebuild_ action. For Mac zip the .app. For Android provide path to .apk file",

请问下, 我已由gym打包处ipa文件,但是可能网络或者其他原因, 我的包没上传;
那么如果我单独另起一个lane仅为了上传包, 且ipa我填了前面gym的输出路径, 但是我发现一直报路径错误
大佬, 此时如果我需要单独使用插件去上传完成后续的操作, 该如何操作?

require 'json'
  desc "FastLane only pgyer dingtalk"
  lane :pgyer_dingtalk do
        # 获取版本信息和提交内容
        $appName = "AppName"
        $versionNo = "#{get_version_number}"
        $buildNo = "#{get_build_number}"
        $folder_name = "#{$versionNo}_build#{$buildNo}"
        $output_path = "~/Documents/fastlane/release/AppName_#{$folder_name}"
        $commit_hash = last_git_commit[:abbreviated_commit_hash] + " " + last_git_commit[:message]
        $update_content = "Fastlane(ios): Release \n v2.5.x 测试版本更新"

        puts "更新版本: #{$folder_name}"
        puts "输出路径: #{$output_path}"
        puts "更新内容: #{$update_content}"

        # 上传 ipa 文件到 fir
        # fastlane action pgyer
        # https://docs.fastlane.tools/actions/pgyer
        pgyer(
            api_key: "ca72xxx86d42",
            #user_key: "6e4aeb737xxx2c340ee5",
            ipa: "#{$output_path}/AppName.ipa", ## ??? 
            install_type: "2", # fastlane 错误之 PGYER Plugin Error
            password: "123456",#"123456Zz",
            update_description: "#{$update_content}"
        )
    
        # 2021 年 6 月 28 日 开始,bugly 不再支持使用 openApi 的方式上传符号表,需要使用官方提供的命令行上传工具进行上传。 本插件当前使用的工具版本为:3.3.4
        upload_dsym_to_bugly(
            file_path: "#{$output_path}/AppName.app.dSYM.zip",
            app_key: "1976exxxb004729",
            app_id:"91xxb5a",
            bundle_id: 'com.xx.AppName',
            version: get_version_number,
            raise_if_error: false
        )               

        msgbody={
          "msgtype": "markdown",
          ...
        }
    
         $cmd1="curl 'https://oapi.dingtalk.com/robot/send?access_token=2c485b2142ca6xxx41ae11e'"
         $cmd2="-H 'Content-Type: application/json'"
         $message=msgbody.to_json
         $cmd3="-d '#{$message}'"
         $dcommand ="#{$cmd1} #{$cmd2} #{$cmd3}"
    
         puts " 即将发送钉钉群通知 ~> #{$dcommand}"
         exec "#{$dcommand}"

  end

from fastlane-plugin-pgyer.

jicheng1014 avatar jicheng1014 commented on May 18, 2024

单独运行 指令

fastlane run pgyer apikey:xxxxxxxxxx你的tokenxxxxxx apk:/Users/atpking/desktop/1__1_.apk

另外 ~ 这种路径在脚本里如果你环境变量没配置正确, 是读不到的 建议你使用完整的路径

@hubin97

from fastlane-plugin-pgyer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.