Rename app to Oikos (was oikos-desktop)
- Binary: oikos-desktop → Oikos - Bundle: oikos-desktop.app → Oikos.app - Install path: /Applications/Oikos.app - Auto-update paths updated - CI Linux binary renamed
This commit is contained in:
@@ -37,12 +37,12 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
|
||||||
|
|
||||||
- run: CGO_ENABLED=1 go build -o build/bin/oikos-desktop .
|
- run: CGO_ENABLED=1 go build -o build/bin/Oikos .
|
||||||
working-directory: cmd/desktop
|
working-directory: cmd/desktop
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
cd cmd/desktop/build/bin
|
cd cmd/desktop/build/bin
|
||||||
tar czf oikos-desktop-linux-amd64.tar.gz oikos-desktop
|
tar czf oikos-desktop-linux-amd64.tar.gz Oikos
|
||||||
sha256sum oikos-desktop-linux-amd64.tar.gz > oikos-desktop-linux-amd64.tar.gz.sha256
|
sha256sum oikos-desktop-linux-amd64.tar.gz > oikos-desktop-linux-amd64.tar.gz.sha256
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,4 +21,4 @@ web/node_modules/
|
|||||||
# Wails desktop app — frontend copy for embedding
|
# Wails desktop app — frontend copy for embedding
|
||||||
cmd/desktop/frontend/dist/
|
cmd/desktop/frontend/dist/
|
||||||
cmd/desktop/build/
|
cmd/desktop/build/
|
||||||
cmd/desktop/oikos-desktop
|
cmd/desktop/Oikos
|
||||||
|
|||||||
16
Makefile
16
Makefile
@@ -56,28 +56,28 @@ desktop: ui ## Build the Wails desktop app for the current platform
|
|||||||
rm -rf cmd/desktop/frontend/dist
|
rm -rf cmd/desktop/frontend/dist
|
||||||
mkdir -p cmd/desktop/frontend/dist
|
mkdir -p cmd/desktop/frontend/dist
|
||||||
cp -r web/dist/* cmd/desktop/frontend/dist/
|
cp -r web/dist/* cmd/desktop/frontend/dist/
|
||||||
cd cmd/desktop && CGO_ENABLED=1 go build -o build/bin/oikos-desktop .
|
cd cmd/desktop && CGO_ENABLED=1 go build -o build/bin/Oikos .
|
||||||
|
|
||||||
desktop-package: desktop ## Build + package the desktop app (zip on macOS, tar.gz on Linux)
|
desktop-package: desktop ## Build + package the desktop app (zip on macOS, tar.gz on Linux)
|
||||||
@case $$(uname -s) in \
|
@case $$(uname -s) in \
|
||||||
Darwin) \
|
Darwin) \
|
||||||
APP="cmd/desktop/build/bin/oikos-desktop.app"; \
|
APP="cmd/desktop/build/bin/Oikos.app"; \
|
||||||
rm -rf "$$APP"; \
|
rm -rf "$$APP"; \
|
||||||
mkdir -p "$$APP/Contents/MacOS"; \
|
mkdir -p "$$APP/Contents/MacOS"; \
|
||||||
mkdir -p "$$APP/Contents/Resources"; \
|
mkdir -p "$$APP/Contents/Resources"; \
|
||||||
cp cmd/desktop/build/bin/oikos-desktop "$$APP/Contents/MacOS/oikos-desktop"; \
|
cp cmd/desktop/build/bin/Oikos "$$APP/Contents/MacOS/Oikos"; \
|
||||||
cp cmd/desktop/icon.icns "$$APP/Contents/Resources/icon.icns"; \
|
cp cmd/desktop/icon.icns "$$APP/Contents/Resources/icon.icns"; \
|
||||||
sed 's/$$(VERSION)/0.1.0/' cmd/desktop/Info.plist.template > "$$APP/Contents/Info.plist"; \
|
sed 's/$$(VERSION)/0.1.0/' cmd/desktop/Info.plist.template > "$$APP/Contents/Info.plist"; \
|
||||||
cd cmd/desktop/build/bin && zip -r oikos-desktop-darwin-$$(uname -m).zip oikos-desktop.app ;; \
|
cd cmd/desktop/build/bin && zip -r oikos-desktop-darwin-$$(uname -m).zip Oikos.app ;; \
|
||||||
Linux) \
|
Linux) \
|
||||||
cd cmd/desktop/build/bin && tar czf oikos-desktop-linux-$$(uname -m).tar.gz oikos-desktop ;; \
|
cd cmd/desktop/build/bin && tar czf oikos-desktop-linux-$$(uname -m).tar.gz Oikos ;; \
|
||||||
esac
|
esac
|
||||||
@echo "Package: cmd/desktop/build/bin/"
|
@echo "Package: cmd/desktop/build/bin/"
|
||||||
|
|
||||||
install: desktop-package ## Install to /Applications
|
install: desktop-package ## Install to /Applications
|
||||||
rm -rf /Applications/oikos-desktop.app
|
rm -rf /Applications/Oikos.app
|
||||||
cp -r cmd/desktop/build/bin/oikos-desktop.app /Applications/
|
cp -r cmd/desktop/build/bin/Oikos.app /Applications/
|
||||||
@echo "Installed to /Applications/oikos-desktop.app"
|
@echo "Installed to /Applications/Oikos.app"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BINARY)
|
rm -f $(BINARY)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>en</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>oikos-desktop</string>
|
<string>Oikos</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.hubris.oikos-desktop</string>
|
<string>com.hubris.oikos-desktop</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ tasks:
|
|||||||
build:
|
build:
|
||||||
summary: Build the Oikos desktop app
|
summary: Build the Oikos desktop app
|
||||||
cmds:
|
cmds:
|
||||||
- go build -o build/bin/oikos-desktop .
|
- go build -o build/bin/Oikos .
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
|
|
||||||
|
|||||||
@@ -604,12 +604,12 @@ func doUpdate(downloadURL string) error {
|
|||||||
return fmt.Errorf("unzip: %w: %s", err, out)
|
return fmt.Errorf("unzip: %w: %s", err, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
newApp := filepath.Join(extractDir, "oikos-desktop.app")
|
newApp := filepath.Join(extractDir, "Oikos.app")
|
||||||
if _, err := os.Stat(newApp); err != nil {
|
if _, err := os.Stat(newApp); err != nil {
|
||||||
return fmt.Errorf("extracted app not found: %w", err)
|
return fmt.Errorf("extracted app not found: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
currentApp := "/Applications/oikos-desktop.app"
|
currentApp := "/Applications/Oikos.app"
|
||||||
if _, err := os.Stat(currentApp); os.IsNotExist(err) {
|
if _, err := os.Stat(currentApp); os.IsNotExist(err) {
|
||||||
if exe, err := os.Executable(); err == nil {
|
if exe, err := os.Executable(); err == nil {
|
||||||
currentApp = filepath.Dir(filepath.Dir(filepath.Dir(exe)))
|
currentApp = filepath.Dir(filepath.Dir(filepath.Dir(exe)))
|
||||||
|
|||||||
Reference in New Issue
Block a user