Compare commits
5
Commits
daf1b80409
...
v0.1.0
No files matched your search
+13
-3
@@ -44,10 +44,20 @@ jobs:
|
||||
$properties = [IO.File]::ReadAllText($file).Replace('-Xmx8G', '-Xmx3G').Replace('MaxMetaspaceSize=4G', 'MaxMetaspaceSize=768m')
|
||||
[IO.File]::WriteAllText($file, $properties + "`norg.gradle.workers.max=4`n")
|
||||
- run: flutter build apk --release --flavor production --target-platform android-arm64,android-x64
|
||||
- run: flutter build windows --release --flavor production
|
||||
- run: python -m pip install pefile==2024.8.26
|
||||
- name: Build Windows from the pinned Gitea native release
|
||||
run: |
|
||||
Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue
|
||||
flutter build windows --release --flavor production
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' }
|
||||
- name: Prepare isolated packaging tools
|
||||
run: |
|
||||
python -m venv .build/package-tools
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Packaging environment setup failed.' }
|
||||
& ./.build/package-tools/Scripts/python.exe -m pip install pefile==2024.8.26
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Packaging dependency installation failed.' }
|
||||
- name: Package application
|
||||
run: python tool/gitea/package-app.py
|
||||
run: |
|
||||
& ./.build/package-tools/Scripts/python.exe tool/gitea/package-app.py
|
||||
- name: Upload Android and Windows packages
|
||||
uses: https://github.com/actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||
with:
|
||||
|
||||
@@ -25,7 +25,7 @@ plugins {
|
||||
|
||||
include(":app")
|
||||
|
||||
// Native source development is opt-in; default resolution uses GitHub Packages.
|
||||
// Native source development is opt-in; default resolution uses Gitea Maven packages.
|
||||
providers.gradleProperty("cutdex.android.path").orNull?.let { nativePath ->
|
||||
includeBuild(nativePath) {
|
||||
dependencySubstitution {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ name: cutdex
|
||||
description: "Cutdex video editing application."
|
||||
publish_to: none
|
||||
|
||||
version: 1.0.0+1
|
||||
version: 0.1.0+1
|
||||
|
||||
environment:
|
||||
sdk: ^3.13.2
|
||||
|
||||
@@ -15,7 +15,7 @@ def main():
|
||||
output = ROOT / 'dist'
|
||||
output.mkdir(exist_ok=True)
|
||||
apk = ROOT / 'build/app/outputs/flutter-apk/app-production-release.apk'
|
||||
windows = ROOT / 'build/windows/x64/runner/Release'
|
||||
windows = ROOT / 'build/windows/x64/production/runner/Release'
|
||||
if not apk.is_file() or not (windows / 'cutdex.exe').is_file():
|
||||
raise ValueError('Both production builds are required')
|
||||
with zipfile.ZipFile(apk) as archive:
|
||||
|
||||
@@ -58,7 +58,7 @@ target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
|
||||
|
||||
# Add dependency libraries and include directories. Add any application-specific
|
||||
# dependencies here.
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app dwmapi)
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/update_configuration.cmake")
|
||||
|
||||
|
||||
Reference in new issue
Block a user