ipa-uploader

module
v0.0.0-...-72dfc82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: GPL-3.0

README

ipa-uploader

Desc

upload local ipa to remote server

Usage

  • implement ipa.Uploader interface

  • call ipa.Do

For example use local file system

package main

import (
	"context"
	"flag"
	"fmt"
	"log"

	"github.com/eggz6/ipa-uploader/ipa"
	"github.com/eggz6/ipa-uploader/uploader"
	"github.com/gin-gonic/gin"
)

var _ipa = flag.String("ipa", "./Runner.ipa", "source ipa file path")

func main() {
	source := *_ipa
	up, err := uploader.NewOss("bucket", "endpoint", "id", "key")
	if err != nil {
		log.Fatalf("new oss upload failed. err=%v", err)
	}

	res, err := ipa.Do(context.TODO(), source, "Payload/Runner.app/AppIcon60x60@3x.png", up)
	if err != nil {
		log.Fatalf("ipa do failed. err=%v", err)
	}

	log.Println(fmt.Sprintf("success, res=%+v", res))
}

For more infomation

example

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL