Skip to content

Commit

Permalink
remove redundant 'Meta'
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Sep 12, 2024
1 parent a197f8f commit 43337ea
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
push:
branches:
- main

jobs:
BuildDebug:
Expand Down Expand Up @@ -53,44 +56,44 @@ jobs:

- name: Build
if: success()
run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease
run: ./gradlew --no-daemon app:assembleAlphaRelease

- name: Upload Aritfact (universal)
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: CMFA Debug Unsigned APK (universal)
path: |
app/build/outputs/apk/meta-alpha/release/*-universal-*.apk
app/build/outputs/apk/alpha/release/*-universal-*.apk
- name: Upload Aritfact (arm64-v8a)
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: CMFA Debug Unsigned APK (arm64-v8a)
path: |
app/build/outputs/apk/meta-alpha/release/*-arm64-v8a-*.apk
app/build/outputs/apk/alpha/release/*-arm64-v8a-*.apk
- name: Upload Aritfact (armeabi-v7a)
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: CMFA Debug Unsigned APK (armeabi-v7a)
path: |
app/build/outputs/apk/meta-alpha/release/*-armeabi-v7a-*.apk
app/build/outputs/apk/alpha/release/*-armeabi-v7a-*.apk
- name: Upload Aritfact (x86_64)
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: CMFA Debug Unsigned APK (x86_64)
path: |
app/build/outputs/apk/meta-alpha/release/*-x86_64-*.apk
app/build/outputs/apk/alpha/release/*-x86_64-*.apk
- name: Upload Aritfact (x86)
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: CMFA Debug Unsigned APK (x86)
path: |
app/build/outputs/apk/meta-alpha/release/*-x86-*.apk
app/build/outputs/apk/alpha/release/*-x86-*.apk
4 changes: 2 additions & 2 deletions .github/workflows/build-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Pre-release Build
if: success()
run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease
run: ./gradlew --no-daemon app:assembleAlphaRelease

# Delete old Prerelease-alpha
- uses: dev-drprasad/[email protected]
Expand All @@ -76,7 +76,7 @@ jobs:
if: ${{ success() }}
with:
tag_name: Prerelease-alpha
files: app/build/outputs/apk/meta-alpha/release/*
files: app/build/outputs/apk/alpha/release/*
prerelease: true
generate_release_notes: true

Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ subprojects {
productFlavors {
flavorDimensions("feature")

create("meta-alpha") {
create("alpha") {
isDefault = true
dimension = flavorDimensionList[0]
versionNameSuffix = ".Meta-Alpha"
versionNameSuffix = ".Alpha"

buildConfigField("boolean", "PREMIUM", "Boolean.parseBoolean(\"false\")")

if (isApp) {
applicationIdSuffix = ".meta"
applicationIdSuffix = ".alpha"
}
}

Expand All @@ -103,7 +103,7 @@ subprojects {
getByName("meta") {
java.srcDirs("src/foss/java")
}
getByName("meta-alpha") {
getByName("alpha") {
java.srcDirs("src/foss/java")
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val golangSource = file("src/main/golang/native")

golang {
sourceSets {
create("meta-alpha") {
create("alpha") {
tags.set(listOf("foss","with_gvisor","cmfa"))
srcDir.set(file("src/foss/golang"))
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ string (REGEX REPLACE "[\n\t\r]" "" COMPILE_TIME ${COMPILE_TIME})
string(REGEX REPLACE "\"" "" COMPILE_TIME ${COMPILE_TIME})

# 生成版本信息
set(GIT_VERSION "Meta_${CURRENT_BRANCH}_${COMMIT_HASH}_${COMPILE_TIME}")
set(GIT_VERSION "${CURRENT_BRANCH}_${COMMIT_HASH}_${COMPILE_TIME}")
message(STATUS "version info = ${GIT_VERSION}")

# 去除空格
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4g -XX:+UseZGC -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down

0 comments on commit 43337ea

Please sign in to comment.