v1.0.0
This commit is contained in:
+36
-10
@@ -1,38 +1,64 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
VERSION="$(tr -d '[:space:]' < "$ROOT/VERSION")"; ARCH="amd64"; WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT
|
||||
VERSION="$(tr -d '[:space:]' < "$ROOT/VERSION")"
|
||||
ARCH="amd64"
|
||||
WORK="$(mktemp -d)"
|
||||
trap 'rm -rf "$WORK"' EXIT
|
||||
PKG="$WORK/citizen-launcher_${VERSION}_${ARCH}"
|
||||
mkdir -p "$PKG/DEBIAN" "$PKG/usr/bin" "$PKG/usr/share/applications" "$PKG/usr/lib/systemd/system" "$PKG/etc/citizen-launcher"
|
||||
install -m755 "$ROOT/backend/bin/citizen-launcher" "$PKG/usr/bin/citizen-launcher"
|
||||
mkdir -p \
|
||||
"$PKG/DEBIAN" \
|
||||
"$PKG/usr/bin" \
|
||||
"$PKG/usr/share/applications" \
|
||||
"$PKG/usr/share/icons/hicolor/scalable/apps" \
|
||||
"$PKG/usr/share/metainfo" \
|
||||
"$PKG/usr/lib/systemd/system" \
|
||||
"$PKG/usr/lib/sysctl.d" \
|
||||
"$PKG/etc/security/limits.d" \
|
||||
"$PKG/etc/xdg/autostart" \
|
||||
"$PKG/etc/citizen-launcher"
|
||||
|
||||
install -m755 "$ROOT/backend/bin/citizen-launcher" "$PKG/usr/bin/citizen-launcher"
|
||||
install -m644 "$ROOT/packaging/systemd/citizen-launcher-self-update.service" "$PKG/usr/lib/systemd/system/citizen-launcher-self-update.service"
|
||||
install -m644 "$ROOT/packaging/systemd/citizen-launcher-self-update.timer" "$PKG/usr/lib/systemd/system/citizen-launcher-self-update.timer"
|
||||
install -m644 "$ROOT/packaging/icons/citizen-launcher.svg" "$PKG/usr/share/icons/hicolor/scalable/apps/citizen-launcher.svg"
|
||||
install -m644 "$ROOT/packaging/metainfo/io.github.citizenlauncher.CitizenLauncher.metainfo.xml" "$PKG/usr/share/metainfo/io.github.citizenlauncher.CitizenLauncher.metainfo.xml"
|
||||
install -m644 "$ROOT/packaging/citizen-launcher-migrate.desktop" "$PKG/etc/xdg/autostart/citizen-launcher-migrate.desktop"
|
||||
printf '%s\n' "${CITIZEN_LAUNCHER_RELEASE_REPO:-sendnwv/omarchy-sc}" > "$PKG/etc/citizen-launcher/release-repo"
|
||||
printf '%s\n' '# Citizen Launcher / Star Citizen' 'vm.max_map_count = 16777216' > "$PKG/usr/lib/sysctl.d/90-citizen-launcher.conf"
|
||||
printf '%s\n' '# Citizen Launcher / Star Citizen' '* soft nofile 524288' '* hard nofile 524288' > "$PKG/etc/security/limits.d/90-citizen-launcher.conf"
|
||||
install -m755 "$ROOT/packaging/postinst" "$PKG/DEBIAN/postinst"
|
||||
install -m755 "$ROOT/packaging/prerm" "$PKG/DEBIAN/prerm"
|
||||
install -m755 "$ROOT/packaging/postrm" "$PKG/DEBIAN/postrm"
|
||||
cat > "$PKG/DEBIAN/control" <<EOF
|
||||
|
||||
cat > "$PKG/DEBIAN/control" <<EOF2
|
||||
Package: citizen-launcher
|
||||
Version: $VERSION
|
||||
Section: games
|
||||
Priority: optional
|
||||
Architecture: $ARCH
|
||||
Maintainer: Citizen Launcher Project
|
||||
Depends: ca-certificates, tar, xdg-utils, curl, cabextract, unzip, xz-utils, apt
|
||||
Depends: ca-certificates, tar, xdg-utils, curl, cabextract, unzip, xz-utils, apt, procps, util-linux, pkexec
|
||||
Recommends: pciutils, vulkan-tools
|
||||
Description: Star Citizen setup, launcher and self-maintaining gaming stack for Linux
|
||||
Distro-neutral Citizen Launcher with Wine/DXVK/RSI management and local GUI.
|
||||
EOF
|
||||
cat > "$PKG/usr/share/applications/io.github.citizenlauncher.CitizenLauncher.desktop" <<EOF
|
||||
Citizen Launcher manages Wine, DXVK, the RSI Launcher, automatic maintenance,
|
||||
desktop integration and privacy-conscious support diagnostics.
|
||||
EOF2
|
||||
|
||||
cat > "$PKG/usr/share/applications/io.github.citizenlauncher.CitizenLauncher.desktop" <<'EOF2'
|
||||
[Desktop Entry]
|
||||
Name=Citizen Launcher
|
||||
Comment=Star Citizen for Linux
|
||||
Exec=citizen-launcher gui
|
||||
Exec=/usr/bin/citizen-launcher gui
|
||||
TryExec=/usr/bin/citizen-launcher
|
||||
Icon=citizen-launcher
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;
|
||||
StartupNotify=true
|
||||
EOF
|
||||
StartupWMClass=CitizenLauncher
|
||||
Keywords=Star Citizen;RSI;Wine;Gaming;
|
||||
EOF2
|
||||
|
||||
mkdir -p "$ROOT/dist"
|
||||
dpkg-deb --build --root-owner-group "$PKG" "$ROOT/dist/citizen-launcher_${VERSION}_${ARCH}.deb"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Citizen Launcher Migration
|
||||
Exec=/usr/bin/citizen-launcher migrate-user
|
||||
NoDisplay=true
|
||||
Terminal=false
|
||||
X-GNOME-Autostart-enabled=true
|
||||
X-KDE-autostart-after=panel
|
||||
@@ -1,5 +1,5 @@
|
||||
Name: citizen-launcher
|
||||
Version: 0.9.2
|
||||
Version: 1.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Star Citizen launcher and self-maintaining Wine stack for Linux
|
||||
License: MIT
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
||||
<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#76e7ff"/><stop offset="1" stop-color="#268dba"/></linearGradient></defs>
|
||||
<rect width="256" height="256" rx="54" fill="#07131d"/>
|
||||
<path d="M128 28 151 93 222 103 166 146 184 218 128 178 72 218 90 146 34 103 105 93Z" fill="none" stroke="url(#g)" stroke-width="14" stroke-linejoin="round"/>
|
||||
<circle cx="128" cy="128" r="23" fill="#5bdcff" opacity=".92"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 506 B |
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>io.github.citizenlauncher.CitizenLauncher</id>
|
||||
<name>Citizen Launcher</name>
|
||||
<summary>Set up, launch, repair and maintain Star Citizen on Linux</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>MIT</project_license>
|
||||
<developer id="io.github.citizenlauncher"><name>Citizen Launcher Project</name></developer>
|
||||
<description>
|
||||
<p>Citizen Launcher manages a locally compatible Wine runner, DXVK, RSI Launcher compatibility, automatic maintenance and support diagnostics for Star Citizen on Linux.</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">io.github.citizenlauncher.CitizenLauncher.desktop</launchable>
|
||||
<url type="homepage">https://github.com/sendnwv/omarchy-sc</url>
|
||||
<categories><category>Game</category></categories>
|
||||
<provides><binary>citizen-launcher</binary></provides>
|
||||
<releases><release version="1.0.0" date="2026-08-31"/></releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -1,7 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if command -v sysctl >/dev/null 2>&1; then
|
||||
sysctl -q -w vm.max_map_count=16777216 >/dev/null 2>&1 || true
|
||||
fi
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl daemon-reload >/dev/null 2>&1 || true
|
||||
systemctl enable --now citizen-launcher-self-update.timer >/dev/null 2>&1 || true
|
||||
fi
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
|
||||
fi
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q /usr/share/icons/hicolor >/dev/null 2>&1 || true
|
||||
fi
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user