Giter VIP home page Giter VIP logo

firim's Introduction

Important

For the reason of fir.im had changed the Base URL, pls set firim_api_url to https://fir-api.fircli.cn/ or https://api.bq04.com. issue

From v0.2.5, the default firim_api_url set to https://api.bq04.com.

From firim v0.2.6, add show download url in terminal. issue

Firim

Firim is a command tool to directly upload ipa and change app infomation on fir.im. fir.im is a Beta APP host website, you can upload ipa for AdHoc or InHouse distribution for testing.

Getting Started

Add this line to your application's Gemfile:

gem 'firim'

And then execute:

$ bundle

Or install it yourself as:

$ gem install firim

Quick Start

  • cd [your_project_folder]
  • firim init
  • Enter your fir.im API Token (From Fir.im)
  • firim -i [your_ipa_path]

Usage

Use with fastlane fastlane-plugin-firim

You can specify the app infomations in Firimfile, To get a list of available options run

firim --help

Upload with icon NOTICE: Icon must be jpg format

firim -i [your_ipa_path] -l [your_icon_path]

Use firim_api_url to set API URL, if fir.im change the Base URL. default is https://api.fir.im.

Export environments

After upload app to fir.im, firim will export some environment variables.

  • FIRIM_APP_SHORT app's short path
  • FIRIM_APP_NAME app's name
  • FIRIM_MASTER_RELEASE_ID app's master_release_id
  • FIRIM_APP_URL the download page of the app

All other App Info export as FIRIM_#{key}, like FIRIM_icon_url

Assign API Token

There are three ways to assign Firim API Token

  1. Set FIRIM_TOKEN environment variables
  2. Add token to macOS Keychain
  3. Set in Firimfile

Firim will check the value from 1 to 3. Run Firim will add token to keychain in interactive shell. Also can use firim addtoken and firim removetoken to add or remove token.

Need help?

Please submit an issue on GitHub and provide information about your setup

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/whlsxl/firim. This project is intended to be a safe, welcoming space for collaboration.

License

The gem is available as open source under the terms of the MIT License.

TODO

  • Generate a web page show all the app's link and infomations
  • Show the app list, and export all app infomations to a file
  • force reset icon

firim's People

Contributors

mfurtak avatar whlsxl avatar xwartz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

firim's Issues

获取下载地址

想知道使用fastlane 打包好并上传到fir之后, 有打印一个APP info 的信息. 我想上传成功之后,直接打印出来下载地址... 但是不知道这个参数怎么获取, short和download_domain

Firim API Token(xxx) not correct

firim addtoken 命令后面要直接跟token么,为什么我用keychain添加了token,用fastlane打包的时候读取到的那个token不是我设置上的呢

no implicit conversion of nil into String after update app info successed

TypeError: [!] no implicit conversion of nil into String
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/firim-0.1.1/lib/firim/runner.rb:46:in initialize' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/firim-0.1.1/lib/firim/runner.rb:46:in open'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/firim-0.1.1/lib/firim/runner.rb:46:in write_app_info_to_file' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/firim-0.1.1/lib/firim/runner.rb:39:in run'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-plugin-firim-0.1.0/lib/fastlane/plugin/firim/actions/firim_action.rb:8:in run' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:227:in block (2 levels) in execute_action'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:212:in block in execute_action'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:211:in chdir' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:211:in execute_action'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:133:in trigger_action_by_name' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/fast_file.rb:146:in method_missing'
Fastfile:41:in block (2 levels) in parsing_binding' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/lane.rb:33:in call'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:49:in block in execute' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:45:in chdir'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/runner.rb:45:in execute' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/lane_manager.rb:52:in cruise_lane'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/command_line_handler.rb:30:in handle' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/commands_generator.rb:96:in block (2 levels) in run'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.1/lib/commander/command.rb:178:in call' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.1/lib/commander/command.rb:153:in run'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.1/lib/commander/runner.rb:444:in run_active_command' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane_core-0.60.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in run!'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/commander-4.4.1/lib/commander/delegates.rb:15:in run!' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/commands_generator.rb:293:in run'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/commands_generator.rb:36:in start' /Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/fastlane/lib/fastlane/cli_tools_distributor.rb:59:in take_off'
/Users/mayifan/.rvm/gems/ruby-2.3.1@global/gems/fastlane-2.1.1/bin/fastlane:5:in <top (required)>' /Users/mayifan/.rvm/gems/ruby-2.3.1/bin/fastlane:23:in load'
/Users/mayifan/.rvm/gems/ruby-2.3.1/bin/fastlane:23:in `<top (required)>'

建议更新到临时域名

fir.im 挂了三天了,不如先更新到他们的临时域名 jappstore.com,以便开发者继续使用脚本发布应用

can't deliver ipa

upload_binary_and_icon': [!] undefined method []' for nil:NilClass (NoMethodError)

fastlane 2.147.0 版本报依赖冲突

报错信息:

Error loading plugin 'fastlane-plugin-firim': Unable to activate firim-0.2.4, because faraday-1.0.1 conflicts with faraday (> 0.9), faraday_middleware-1.0.0 conflicts with faraday_middleware (> 0.9)

Ruby 版本:ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

Fastlane 版本:2.147.0

看作者是否考虑更新一下 faraday 的依赖版本

FastLine 中如何配置 **firim**

      firim(firim_api_token: "#{APP_TOKEN}",
	      platform: ios,
	      app_changelog: "test for firm"
      )

提示如下错误

Could not find action, lane or variable 'ios'. Check out the documentation for more details:

Upload binary to Qiniu error

Hi, when I upload Android apk to fir, always get error

Upload binary to Qiniu error {"error"=>"{\"callback_url\":\"http://api.fir.im/auth/qiniu/callback?parent_id=5a841c16959d6907fae934dc\\u0026timestamp=1527316346\\u0026sign=f73d5\\u0026user_id=57d39481ca87a87db3000616\",\"callback_bodyType\":\"application/x-www-form-urlencoded\",\"callback_body\":\"key=27e32706c1d2653f16a3b255184836080fd152e0.apk\\u002\"}"}
....

Actually, it has been uploaded successfully

fir.im 域名更改导致的插件会出现的问题

大佬您好

因为 fir.im 的备案被吊销, 可能对您这个插件有很大影响

目前 接口 api.fir.im 已经切换到了 api.bq04.com 接口方法不变

另外 fir.im 上传方式 默认从七牛 切换到了 ali 需要手动 callback 下 不知是否对您这有影响

Could action "firim" support operating system "android"?

Could action "firim" support operating system "android"?
When I used "fastlane-plugin-firim" uploading apk to fir.im , it prompted "Action 'firim' isn't known to support operating system 'android'." and warning "Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0."
How can I do?

firm报错100108

截屏2021-07-22 上午11 40 18
打包完之后,app_short没有生效
麻烦帮忙看下,非常感谢

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.