Brought up to date with the private repository (6630f7f)

This commit is contained in:
S committed 2026-10-14 19:03:16 +03:00
commit c8178dce98
26 files changed
+6314

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
"use strict";
// electron-builder's settings for the linux packages (the windows wizard is
// burrow.nsi). tools/build.sh hands over the staged app, the electron to use
// and where to put the result.
const path = require("path");
const root = path.join(__dirname, "..");
const flash = path.join(root, "flash");
module.exports = {
appId: "software.burrow.client",
productName: "Burrow",
copyright: "",
electronVersion: "11.5.0",
electronDist: process.env.BURROW_ELECTRON,
directories: {app: process.env.BURROW_APP, output: process.env.BURROW_OUT},
// the client finds flash beside its own folder (app/main.js), so no asar
asar: false,
npmRebuild: false,
nodeGypRebuild: false,
publish: null,
// the .deb and .rpm want a homepage and a maintainer; the server's address
// stands in when the build was given one
extraMetadata: {
// the package's name in apt and dnf
name: "burrow",
homepage: process.env.BURROW_HOMEPAGE || "https://play.burrow.moe",
author: {name: "Burrow", email: "[email protected]"},
desktopName: "burrow.desktop",
},
linux: {
target: [{target: "AppImage", arch: ["x64"]}, {target: "deb", arch: ["x64"]}, {target: "rpm", arch: ["x64"]}],
icon: path.join(root, "app", "icon.png"),
category: "Game",
maintainer: "Burrow",
synopsis: "The client for the Burrow server",
description: "The client for Burrow, an AJ Classic private server.",
executableName: "burrow",
// the 2019 flash plugin cannot start inside chromium's sandbox on linux
executableArgs: ["--no-sandbox"],
extraResources: [{from: flash, to: "flash", filter: ["libpepflashplayer.so", "manifest.json"]}],
},
appImage: {artifactName: "Burrow-x86_64.AppImage"},
deb: {artifactName: "burrow_amd64.deb"},
rpm: {artifactName: "burrow.x86_64.rpm"},
};
+69
View File
@@ -0,0 +1,69 @@
; the windows setup wizard. tools/build.sh compiles it with -DVERSION, -DSOURCE
; (the folder to install), -DOUTFILE, -DICON and -DFILES (what the uninstaller removes).
Unicode true
!include "MUI2.nsh"
Name "Burrow"
OutFile "${OUTFILE}"
; per user: no administrator prompt, and an update needs none either
RequestExecutionLevel user
InstallDir "$LOCALAPPDATA\Programs\Burrow"
InstallDirRegKey HKCU "Software\Burrow" "InstallDir"
SetCompressor /SOLID lzma
BrandingText "Burrow ${VERSION}"
VIProductVersion "${VERSION}.0"
VIAddVersionKey "ProductName" "Burrow"
VIAddVersionKey "FileDescription" "Burrow Setup"
VIAddVersionKey "FileVersion" "${VERSION}"
VIAddVersionKey "ProductVersion" "${VERSION}"
VIAddVersionKey "LegalCopyright" ""
!define MUI_ICON "${ICON}"
!define MUI_UNICON "${ICON}"
!define MUI_ABORTWARNING
!define MUI_FINISHPAGE_RUN "$INSTDIR\Burrow.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Start Burrow"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\Burrow"
Section "Burrow"
SetOutPath "$INSTDIR"
File /r "${SOURCE}\*.*"
WriteUninstaller "$INSTDIR\Uninstall Burrow.exe"
CreateShortcut "$SMPROGRAMS\Burrow.lnk" "$INSTDIR\Burrow.exe"
CreateShortcut "$DESKTOP\Burrow.lnk" "$INSTDIR\Burrow.exe"
WriteRegStr HKCU "Software\Burrow" "InstallDir" "$INSTDIR"
WriteRegStr HKCU "${UNINSTALL_KEY}" "DisplayName" "Burrow"
WriteRegStr HKCU "${UNINSTALL_KEY}" "DisplayVersion" "${VERSION}"
WriteRegStr HKCU "${UNINSTALL_KEY}" "Publisher" "Burrow"
WriteRegStr HKCU "${UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\Burrow.exe"
WriteRegStr HKCU "${UNINSTALL_KEY}" "InstallLocation" "$INSTDIR"
WriteRegStr HKCU "${UNINSTALL_KEY}" "UninstallString" '"$INSTDIR\Uninstall Burrow.exe"'
WriteRegDWORD HKCU "${UNINSTALL_KEY}" "NoModify" 1
WriteRegDWORD HKCU "${UNINSTALL_KEY}" "NoRepair" 1
SectionEnd
; only what was installed goes: the folder may be one the player chose, with
; other things in it. remembered accounts and settings live elsewhere and stay.
Section "Uninstall"
!include "${FILES}"
Delete "$INSTDIR\Uninstall Burrow.exe"
RMDir "$INSTDIR"
Delete "$SMPROGRAMS\Burrow.lnk"
Delete "$DESKTOP\Burrow.lnk"
DeleteRegKey HKCU "${UNINSTALL_KEY}"
DeleteRegKey HKCU "Software\Burrow"
SectionEnd
+3487
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -0,0 +1,8 @@
{
"name": "burrow-installers",
"private": true,
"description": "builds the installers; not part of the client",
"devDependencies": {
"electron-builder": "26.16.1"
}
}