Skip to content

Commit

Permalink
Merge pull request #11 from devsapp/gwh/dipper
Browse files Browse the repository at this point in the history
fix:Inspect template readme and publish
  • Loading branch information
rsonghuster authored Sep 14, 2024
2 parents 14369f9 + b1a7f5a commit b388f7d
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: git config --global core.symlinks false
shell: bash
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions .signore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
.github
.idea
.vscode
.DS_Store
.git
.env
8 changes: 5 additions & 3 deletions publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-repack-apk-dipper
Version: 0.0.2
Name: start-repack-apk-cap
Version: 0.0.1
Provider:
- 阿里云
Description: 基于 CDN + Custom 运行时实现 apk 实时打渠道包
Expand All @@ -24,7 +24,9 @@ Service:
专有网络:
Authorities:
- AliyunFCServerlessDevsRolePolicy

日志服务:
Authorities:
- AliyunFCServerlessDevsRolePolicy
Parameters:
type: object
additionalProperties: false # 不允许增加其他属性
Expand Down
198 changes: 197 additions & 1 deletion readme.md
34 changes: 6 additions & 28 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@

> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验)
# start-repack-apk-dipper 帮助文档
# start-repack-apk-cap 帮助文档

<description>

基于 CDN + Custom 运行时实现 apk 实时打渠道包

</description>

<codeUrl>

</codeUrl>
<preview>



</preview>


## 前期准备

Expand All @@ -32,6 +23,7 @@
| 函数计算 | AliyunFCFullAccess | [帮助文档](https://help.aliyun.com/product/2508973.html) [计费文档](https://help.aliyun.com/document_detail/2512928.html) |
| 硬盘挂载 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/nas) [计费文档](https://help.aliyun.com/zh/nas/product-overview/billing) |
| 专有网络 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/vpc) [计费文档](https://help.aliyun.com/zh/vpc/product-overview/billing) |
| 日志服务 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/sls) [计费文档](https://help.aliyun.com/zh/sls/product-overview/billing) |

</service>

Expand All @@ -51,11 +43,12 @@

<appcenter>

:fire: 通过 [Dipper 应用中心](https://devs.console.aliyun.com/applications/createtemplate=start-repack-apk-dipper)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/createtemplate=start-repack-apk-dipper) 该应用。
- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-repack-apk-cap)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-repack-apk-cap) 该应用。

</appcenter>
<deploy>



</deploy>

## 案例介绍
Expand Down Expand Up @@ -195,25 +188,10 @@ $ jarsigner -keystore test.keystore -signedjar new.apk new-unsigned.apk 'test'

![](https://img.alicdn.com/imgextra/i4/O1CN01ARFir41xyXwDIpAng_!!6000000006512-2-tps-711-463.png)


</usedetail>

## 注意事项

<matters id="flushContent">
</matters>


<devgroup>


## 开发者社区

您如果有关于错误的反馈或者未来的期待,您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 FC 组件的最新动态,您可以通过以下渠道进行:

<p align="center">

| <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="130px" > | <img src="https://images.devsapp.cn/fc-faq/33947367.png" width="130px" > |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| <center>微信公众号:`serverless`</center> | <center>微信小助手:`xiaojiangwh`</center> | <center>钉钉交流群:`33947367`</center> |
</p>
</devgroup>
7 changes: 7 additions & 0 deletions src/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
doRepackAPK:
defaultBuilder:
languages:
- go1.8
steps:
- run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o target/repack
path: ./code
4 changes: 3 additions & 1 deletion src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ resources:
description: get repack apk file
runtime: custom
handler: main
memorySize: 512
cpu: 1
memorySize: 1024
diskSize: 512
timeout: 60
customRuntimeConfig:
command:
Expand Down

0 comments on commit b388f7d

Please sign in to comment.