diff --git a/exe/Info.plist b/exe/Info.plist deleted file mode 100644 index b5c18b2f2..000000000 --- a/exe/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - CFBundlePackageType - APPL - CFBundleIconFile - icon - CFBundleExecutable - app - CFBundleIdentifier - ninja.nostrudel - CFBundleName - noStrudel - CFBundleVersion - 0.41.0 - CFBundleShortVersionString - 0.41.0 - - diff --git a/exe/go.mod b/exe/go.mod deleted file mode 100644 index fa8c07246..000000000 --- a/exe/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module nostrudel.ninja/m/v2 - -go 1.23.2 diff --git a/exe/main.go b/exe/main.go deleted file mode 100644 index 7998588e2..000000000 --- a/exe/main.go +++ /dev/null @@ -1,52 +0,0 @@ -package main - -import ( - "embed" - "fmt" - "io/fs" - "net/http" - "os/exec" - "runtime" -) - -//go:embed web/* -var webFiles embed.FS - -func openBrowser(url string) { - var cmd string - var args []string - - switch runtime.GOOS { - case "windows": - cmd = "cmd" - args = []string{"/c", "start"} - case "darwin": - cmd = "open" - default: - cmd = "xdg-open" - } - args = append(args, url) - exec.Command(cmd, args...).Start() -} - -func main() { - // Create a filesystem rooted at the 'web' directory - fsys, err := fs.Sub(webFiles, "web") - if err != nil { - panic(err) - } - - // Serve the embedded files - http.Handle("/", http.FileServer(http.FS(fsys))) - - port := "3149" - fmt.Printf("Starting server at http://localhost:%s\n", port) - - // Open browser automatically - openBrowser("http://localhost:" + port) - - // Start server - if err := http.ListenAndServe(":"+port, nil); err != nil { - panic(err) - } -} diff --git a/exe/makefile b/exe/makefile deleted file mode 100644 index 7af254cb0..000000000 --- a/exe/makefile +++ /dev/null @@ -1,77 +0,0 @@ -# Variables -VERSION ?= $(shell git describe --tags --always --dirty) -BINARY_NAME=noStrudel -BUILD_DIR=bin -RESOURCES_DIR=resources - -# Build flags -LDFLAGS=-ldflags="-X 'main.Version=${VERSION}'" - -# Windows resource file (create this at build time) -WINDOWS_SYSO=${BUILD_DIR}/windows_amd64.syso - -# Ensure builds directory exists -$(shell mkdir -p ${BUILD_DIR}) - -.PHONY: all clean windows linux darwin windows-syso - -all: copy windows linux darwin - -# Build source -copy: source - cp -r ../dist/* web - -source: - cd ../ && \ - pnpm install && \ - VITE_COMMIT_HASH=$(shell git rev-parse --short HEAD) \ - VITE_APP_VERSION=$(shell jq -r .version ../package.json) \ - pnpm build - -# Generate Windows resource file with icon -windows-syso: - go install github.com/akavel/rsrc@latest - rsrc -ico ${RESOURCES_DIR}/icon.ico -o ${WINDOWS_SYSO} - -# Windows builds -windows: windows-syso windows-amd64 windows-arm64 - -windows-amd64: - GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-windows-amd64.exe - -windows-arm64: - GOOS=windows GOARCH=arm64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-windows-arm64.exe - -# Linux builds -linux: linux-amd64 linux-arm64 - -linux-amd64: - GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-linux-amd64 - -linux-arm64: - GOOS=linux GOARCH=arm64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-linux-arm64 - -# macOS builds -darwin: darwin-amd64 darwin-arm64 - -darwin-amd64: - GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64 - # Create macOS app bundle for amd64 - mkdir -p ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64.app/Contents/MacOS - mkdir -p ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64.app/Contents/Resources - cp ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64 ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64.app/Contents/MacOS/${BINARY_NAME} - cp ${RESOURCES_DIR}/icon.icns ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64.app/Contents/Resources/ - cp Info.plist ${BUILD_DIR}/${BINARY_NAME}-darwin-amd64.app/Contents/ - -darwin-arm64: - GOOS=darwin GOARCH=arm64 go build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64 - # Create macOS app bundle for arm64 - mkdir -p ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64.app/Contents/MacOS - mkdir -p ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64.app/Contents/Resources - cp ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64 ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64.app/Contents/MacOS/${BINARY_NAME} - cp ${RESOURCES_DIR}/icon.icns ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64.app/Contents/Resources/ - cp Info.plist ${BUILD_DIR}/${BINARY_NAME}-darwin-arm64.app/Contents/ - -# Clean build directory -clean: - rm -rf ${BUILD_DIR}/* diff --git a/exe/resources/icon.icns b/exe/resources/icon.icns deleted file mode 100644 index c15916ba1..000000000 Binary files a/exe/resources/icon.icns and /dev/null differ diff --git a/exe/resources/icon.ico b/exe/resources/icon.ico deleted file mode 100644 index c03c9f71e..000000000 Binary files a/exe/resources/icon.ico and /dev/null differ diff --git a/exe/resources/icon.png b/exe/resources/icon.png deleted file mode 100644 index 00635e070..000000000 Binary files a/exe/resources/icon.png and /dev/null differ diff --git a/exe/web/.gitkeep b/exe/web/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a41f99e0e..4fe1cd481 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -417,10 +417,10 @@ importers: specifier: ^0.6.8 version: 0.6.8 '@types/react': - specifier: ^18.3.18 + specifier: ^18.2.22 version: 18.3.18 '@types/react-dom': - specifier: ^18.3.5 + specifier: ^18.2.7 version: 18.3.5(@types/react@18.3.18) '@types/react-window': specifier: ^1.8.8