linux version name fix

This commit is contained in:
Nikhil Sonti
2025-07-19 08:13:54 -07:00
parent 986cd6b548
commit b21defff07
3 changed files with 6 additions and 8 deletions

View File

@@ -33,8 +33,3 @@ linux:
# Notification settings
notifications:
slack: true # Enable Slack notifications for release builds
# GCS upload settings
gcs:
upload: true # Enable automatic upload to Google Cloud Storage
bucket: browseros-releases # GCS bucket for Linux releases

View File

@@ -122,6 +122,9 @@ def upload_package_artifacts(ctx: BuildContext) -> tuple[bool, List[str]]:
# Look for installer and ZIP files
artifacts.extend(dist_dir.glob("*.exe"))
artifacts.extend(dist_dir.glob("*.zip"))
else: # Linux
# Look for AppImage files
artifacts.extend(dist_dir.glob("*.AppImage"))
if not artifacts:
log_info("No package artifacts found to upload")

View File

@@ -195,10 +195,10 @@ def create_appimage(ctx: BuildContext, appdir: Path, output_path: Path) -> bool:
def package(ctx: BuildContext) -> bool:
"""Package BrowserOS for Linux as AppImage"""
log_info(f"📦 Packaging {ctx.NXTSCAPE_APP_BASE_NAME} {ctx.nxtscape_version} for Linux ({ctx.architecture})")
log_info(f"📦 Packaging {ctx.NXTSCAPE_APP_BASE_NAME} {ctx.get_nxtscape_chromium_version()} for Linux ({ctx.architecture})")
# Create packaging directory
package_dir = Path(join_paths(ctx.root_dir, "out", "package", ctx.architecture))
package_dir = ctx.get_dist_dir()
package_dir.mkdir(parents=True, exist_ok=True)
# Prepare AppDir
@@ -210,7 +210,7 @@ def package(ctx: BuildContext) -> bool:
return False
# Define output filename
version = ctx.nxtscape_version.replace(" ", "_")
version = ctx.get_nxtscape_chromium_version().replace(" ", "_")
arch_suffix = "x86_64" if ctx.architecture == "x64" else "arm64"
filename = f"{ctx.NXTSCAPE_APP_BASE_NAME}-{version}-{arch_suffix}.AppImage"
output_path = Path(join_paths(package_dir, filename))