-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: bump fairos * chore: bump linter version * feat: add wails app (#37) * feat: add wails app * refactor fuse for multiple mounts, material-ui working on wails * added info for installer, updated readme for windows dev and build procedure * changing material to mui, changing styled engin * remove cli code, add config, login and mount placeholders * comment out build code * update menu * show/hide config preferences * fix:views and save states * fix: lint * fonts * add fonts * bump: fairos version to v0.9.0-rc2 * fix: lint * fix: tests * Build (#46) * feat: build and release, #43 * feat: #42, tooltip added for inputs * fix: #48, settings modal * Misc.0 (#52) * feat: #40, display errors in snackbar * config file name, remember file name, app name change * add menu placeholders * about dialog added * feat: add about information * feat: enable disable menu items * feat: handle new pod * change binary names Co-authored-by: tfius <[email protected]>
- Loading branch information
Showing
61 changed files
with
2,918 additions
and
1,276 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
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,147 @@ | ||
name: Release | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GOARCH: ${{ matrix.arch }} | ||
CGO_ENABLED: ${{ matrix.cgo }} | ||
CPATH: ${{ matrix.cpath }} | ||
GODEBUG: cgocheck=2 | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
arch: amd64 | ||
cgo: 1 | ||
cpath: C:\Program Files (x86)\WinFsp\inc\fuse | ||
- os: ubuntu-latest | ||
arch: amd64 | ||
cgo: 1 | ||
- os: macos-10.15 | ||
arch: amd64 | ||
cgo: 1 | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Install go | ||
uses: actions/setup-go@v2 | ||
with: | ||
stable: true | ||
go-version: 1.18.* | ||
|
||
- name: Install winfsp (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
$releases = Invoke-WebRequest https://api.github.com/repos/winfsp/winfsp/releases | ConvertFrom-Json | ||
$asseturi = $releases[0].assets.browser_download_url | Where-Object { $_ -match "winfsp-.*\.msi" } | ||
Invoke-WebRequest -Uri $asseturi -Out winfsp.msi | ||
Start-Process -NoNewWindow -Wait msiexec "/i winfsp.msi /qn INSTALLLEVEL=1000" | ||
shell: powershell | ||
|
||
- name: Install FUSE (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -qq install libfuse-dev | ||
sudo apt-get -qq install libacl1-dev | ||
sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev libwebkit2gtk-4.0-37-gtk2 | ||
- name: Install FUSE (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
# requires macos-10.15; does not work on macos-latest | ||
# see https://github.com/actions/virtual-environments/issues/4731 | ||
brew install macfuse | ||
- name: Set git to use LF | ||
# make sure that line endings are not converted on windows | ||
# as gofmt linter will report that they need to be changed | ||
run: git config --global core.autocrlf false | ||
- name: Cache Go modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build-${{ env.cache-name }}- | ||
${{ runner.OS }}-build- | ||
${{ runner.OS }}- | ||
- name: Install wails | ||
run: | | ||
GO111MODULE=on go install github.com/wailsapp/wails/v2/cmd/wails@latest | ||
- name: Build | ||
run: make binary | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
name: windows | ||
path: build/bin/* | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
name: linux | ||
path: build/bin/* | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'macos-10.15' | ||
with: | ||
name: mac | ||
path: build/bin/* | ||
release: | ||
needs: build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: windows | ||
path: build/bin/windows | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: mac | ||
path: build/bin/mac | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: linux | ||
path: build/bin/linux | ||
- name: Display structure of downloaded files | ||
run: ls -R | ||
- run: mv build/bin/linux/FDA build/bin/fda | ||
- run: mv build/bin/windows/FDA.exe build/bin/fda.exe | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- shell: bash | ||
run: | | ||
chmod +x scripts/add-cert.sh && ./scripts/add-cert.sh | ||
npm install --global create-dmg | ||
chmod +x build/bin/mac/app.app/Contents/MacOS/app | ||
create-dmg build/bin/mac/app.app build/bin --identity '${{ secrets.ID }}' | ||
mv 'build/bin/Fairdrive Desktop App.app' build/bin/fda.dmg | ||
env: | ||
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }} | ||
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} | ||
|
||
- name : Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
.idea/ | ||
dist/ | ||
dist/ | ||
build/bin | ||
node_modules | ||
frontend/dist | ||
|
||
frontend/package-lock.json | ||
|
||
*/DS_Store |
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.