GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - limebinary/app-download: build your app's download page easily

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
public
public
 
 
style
style
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.grenrc.js
.grenrc.js
 
 
.npmignore
.npmignore
 
 
.prettierrc
.prettierrc
 
 
.stylelintrc
.stylelintrc
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
config.json
config.json
 
 
index.js
index.js
 
 
notify.sh
notify.sh
 
 
package.json
package.json
 
 
poi.config.js
poi.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

app-download

Build Status PRs Welcome Automated Release Notes by gren

  • PC显示效果

app-download-pc

  • MOBILE显示效果

app-download-mobile

Table of Contents

  • Introduction
  • Feature
  • 快速开始
  • 目录结构
  • 页面信息配置
  • 环境变量
  • 构建
  • License

Introduction

App下载页面模版: 简单配置一下就能得到一个app下载页面

⬆ Back to Top

Feature

  • 只需简单地配置下logo、下载链接等,即可得到一个app下载页面
  • 响应式布局,支持移动端,pc端
  • 兼容android与ios设备在不同浏览器下的行为

流程如下: 流程

⬆ Back to Top

快速开始

# 安装依赖
yarn

# 开发
yarn dev


# 构建
yarn build

⬆ Back to Top

目录结构

├── README.md
├── poi.config.js          poi配置文件
├── package.json
├── config.json              页面配置文件
├── public                 公共文件
│   ├── images             图片存放 图片使用相对路径引入
│   │   ├── open_in_browser_tip_bg.png
│   │   └── download.png
│   ├── index.html
│  
├── style                  样式存放
│   ├── bulma.css
│   └── common.less
└── yarn.lock

⬆ Back to Top

页面信息配置

修改 config.json 即可配置页面信息,修改后重新执行 yarn dev 即可看到效果。

当然,您也可以对页面html进行拓展,页面使用EJS模版。

{
  "title": "xx App", // 显示在头部的标题,文档标题为下载加上此 title,即此处文档标题为"下载 xx App"
  "logo": "https://i.screenshot.net/54qmgiy", // 显示在头部的 app logo
  "app": [ // app 下载配置
    {
      "platform": "Android", // 平台
      "downloadLink":"", // 下载链接,对于 ios 的 app,只需上架后在此填 app store 链接即可
      "qrcode": true, // 是否显示二维码 二维码为当前地址 location.href
      "icon": "https://i.screenshot.net/o80j4t2" // 操作系統 logo
    },
    {
      "platform": "iOS",
      "downloadLink": "",
      "qrcode": false,
      "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA/BAMAAACob32rAAAAIVBMVEUAAACzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7P8wCOwAAAACnRSTlMAGb6OcuHzpVs+6IZEKwAAAW9JREFUeAG1lb9Lw1AQx1+som5BSyhO4hCkk1Ch2ik6OolUhY4OFZzcBKdaBNf4Y3IzNUl7f6W55DXP0vveIHhTeJ93733v3vVbI8RHGBkYY6IDCN+ICOauFpBiRHsFzHwtNUepn0xniA6Y7moHE7p2jeFUvTbS6oGp5pEoga0wbUpGEJrxkaTXe+4cvtrvVnfvYWFTMyzUpPu85J3ese7kpIbb5QLR7ZNphdUnpfO6NgZ2hbJLu49x7IoUoqp7XYZEI9sBOc7rZxEi5xJ2EI20g78ZbqLUcqYbACZuGoSYuWkQ4r6kZ4DG82mQIvXdACNRiOb/RvV7rea2Wm/vT736UvtcyQoArUZjBdGp8wKU7EE68ZWCifo+LolKZ4Kiy440MPU1WbnW6aqZgXJt8dMHMFOf2HpeAKvFR9f2L6quDV70FefDgq6Jc8KtZfrr78yzyRedbriUap8iPeaNL2yG6aJLv18Nr+1KMxze2M8fURLvee/vAC0AAAAASUVORK5CYII="
    }
  ]
}

⬆ Back to Top

环境变量

使用.env设置环境变量, 即在项目根目录新建一个.env文件, 填写环境变量即可。

.env文件示例:

# 左边是变量名(一般大写,下划线分割单词),右边是变量值
# 注意=号两边不能有空格
PUBLIC_PATH=./
环境变量名 说明
PUBLIC_PATH 静态资源构建目录

⬆ Back to Top

构建

构建会读取根目录下的.env文件获取环境变量, 默认在dist目录输出静态文件

命令如下:

yarn build

⬆ Back to Top

License

MIT

⬆ Back to Top

About

build your app's download page easily

femessage.github.io/app-download/

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.