-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from gregandcin/gui-frontend
Fyne GUI Frontend
- Loading branch information
Showing
17 changed files
with
1,451 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: On Release Published | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-binaries-linux: | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.5' | ||
|
||
- name: Get dependencies | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install gcc \ | ||
libgl1-mesa-dev libegl1-mesa-dev \ | ||
libgles2-mesa-dev libx11-dev xorg-dev \ | ||
libwayland-dev libxkbcommon-dev bc | ||
- name: Install FyneCLI tool | ||
run: go install fyne.io/fyne/v2/cmd/fyne@latest | ||
|
||
- name: Build | ||
run: make build-linux | ||
|
||
- name: Rename archive | ||
run: zip -r Pinecone_linux.zip bin/Pinecone.tar.xz bin/data && mv Pinecone_linux.zip bin/Pinecone_linux.zip | ||
|
||
- name: Upload Linux Bin | ||
uses: djn24/add-asset-to-release@v2 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
path: 'bin/Pinecone_linux.zip' | ||
|
||
publish-binaries-mac: | ||
timeout-minutes: 20 | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.5' | ||
|
||
- name: Install FyneCLI tool | ||
run: go install fyne.io/fyne/v2/cmd/fyne@latest | ||
|
||
- name: Build | ||
run: make build-mac | ||
|
||
- name: Zip App | ||
run: zip -vr Pinecone_macos.zip bin/Pinecone.app bin/data -x "*.DS_Store" && mv Pinecone_macos.zip bin/ | ||
|
||
|
||
- name: Upload MacOS Bin | ||
uses: djn24/add-asset-to-release@v2 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
path: 'bin/Pinecone_macos.zip' | ||
|
||
publish-binaries-win: | ||
timeout-minutes: 20 | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.5' | ||
|
||
- name: Install FyneCLI tool | ||
run: go install fyne.io/fyne/v2/cmd/fyne@latest | ||
|
||
- name: Build | ||
run: make build-win | ||
|
||
- name: Zip Binary | ||
shell: pwsh | ||
run: Compress-Archive -Path "bin/Pinecone.exe", "bin/data" -DestinationPath "Pinecone_win.zip" && mv Pinecone_win.zip bin/ | ||
|
||
- name: Upload Win Bin | ||
uses: djn24/add-asset-to-release@v2 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
path: 'bin/Pinecone_win.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"golang.go", | ||
"davidanson.vscode-markdownlint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Website = "https://github.com/Xbox-Preservation-Project/Pinecone" | ||
|
||
[Details] | ||
Icon = "images/cleet.png" | ||
Name = "Pinecone" | ||
ID = "com.xbox-preservation.pinecone" | ||
Version = "0.5.0" | ||
Build = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
build: | ||
go build -o bin/ | ||
build-prod: | ||
go build -ldflags "-s -w" -o bin/ | ||
run: | ||
go run . | ||
clean: | ||
rm -rf bin/ | ||
build-mac: clean | ||
mkdir bin | ||
fyne package -os darwin --release | ||
mv Pinecone.app bin/ | ||
cp -r data bin/data | ||
build-linux: clean | ||
mkdir bin | ||
fyne package -os linux --release | ||
mv Pinecone.tar.xz bin/ | ||
cp -r data bin/data | ||
build-win: clean | ||
mkdir bin | ||
fyne package -os windows --release | ||
mv Pinecone.exe bin/ | ||
cp -r data bin/data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"go.useLanguageServer": true, | ||
"gopls": { | ||
"formatting.gofumpt": true, | ||
}, | ||
"editor.formatOnSave": true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.