This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
._env
90 lines (69 loc) · 2.58 KB
/
._env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Required: Device codename
DEVICE="vince"
ROM_NAME="RiceDroid"
# Required: git username
GIT_NAME="ROMBUILDER"
# Required: git email
GIT_EMAIL="[email protected]"
# Required: Personal Access Token from GitHub with permissions repo, admin:repo_hook, user
# Better set it as a secret in your GitHub repo settings
# RELEASE_GITHUB_TOKEN=""
# Required: Repository owner/repo to upload and release build files
GITHUB_RELEASE_REPO="rom-builder/$DEVICE-$ROM_NAME"
# Required: To upload the build, set this
RELEASE_FILES_PATTERN="*.zip|*.md5sum|*.sha256sum"
# Required: Repos to clone
# Example repos.json:
# {
# "repos": [
# {
# "repo": "https://github.com/owner/repo.git",
# "dir": "device/vendor/dir",
# "branch": "branch" # Optional
# },
# {
# "repo": "https://gitlab.com/owner/repo.git",
# "dir": "device/vendor/dir"
# },
# ]
# }
REPOS_JSON="repos.json"
# Required: Output directory for release files
RELEASE_OUT_DIR="out/target/product/$DEVICE"
# Optional: If you have any pre command to run before setting up source
# PRE_SETUP_SOURCE_COMMAND=""
# Required:
SETUP_SOURCE_COMMAND=""
# Optional: If you have any post command to run after setting up source
# POST_SETUP_SOURCE_COMMAND=""
# Optional: If you have any pre command to run before syncing source
# PRE_SYNC_SOURCE_COMMAND=""
# Required:
SYNC_SOURCE_COMMAND=""
# Optional: If you have any post command to run after syncing source
# POST_SYNC_SOURCE_COMMAND=""
# Optional: If you have any pre command to run before building
# PRE_BUILD_COMMAND=""
# Required: Build command either for vanilla or gapps or both
# Vanilla build command
BUILD_VANILLA_COMMAND="bash vanilla.sh || . build/envsetup.sh && brunch $DEVICE"
# GApps build command
BUILD_GAPPS_COMMAND=""
# Optional: If you have any post command to run after building
# POST_BUILD_COMMAND=""
# Optional: If you do not want logs
# LOG_OUTPUT=false
# Optional: if you want updates in telegram
# TG_TOKEN="" # Your bot token
# TG_CHAT="" # Your chat id
# Optional: if you want to remove OTA Package
REMOVE_OTA_PACKAGE=true
# Optional: if you want to upload to sourceforge
SF_UPLOAD=false
# Mandatory if SF_UPLOAD is true
# SF_USER="" # Sourceforge username
# SF_PASS="" # Sourceforge password: keep it secret in your GitHub repo settings or as environment variable
SF_PROJECT="$ROM_NAME" # Sourceforge project name
SF_DIR="$DEVICE" # Sourceforge directory at project
SF_HOST="frs.sourceforge.net" # Sourceforge host.
SF_PATH="/home/pfs/project/$SF_PROJECT/$SF_DIR/" # Full Sourceforge path for uploading with scp