From fa9d1850c704e9e5b4aa579ab34e9a992251d65e Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Tue, 22 Aug 2023 17:25:33 +0800 Subject: [PATCH] perf: lower ubuntu version to build deb, compress exe size in windows --- .github/workflows/release-linux.yaml | 2 +- .github/workflows/release-windows.yaml | 8 ++++---- build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control | 1 - frontend/src/App.vue | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index ab082d5..fcc75c9 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -7,7 +7,7 @@ on: jobs: release: name: Release Linux App - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: platform: diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 8ea3aed..a5604d5 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -35,10 +35,10 @@ jobs: with: go-version: stable - - name: Install makensis + - name: Install chocolatey uses: crazy-max/ghaction-chocolatey@v2 with: - args: install nsis jq + args: install nsis jq upx - name: Install wails shell: bash @@ -59,7 +59,7 @@ jobs: - name: Build Windows portable app shell: bash - run: CGO_ENABLED=1 wails build -clean -platform ${{ matrix.platform }} -ldflags "-X main.version=${{ github.event.release.tag_name }}" + run: CGO_ENABLED=1 wails build -clean -platform ${{ matrix.platform }} -upx -webview2 embed -ldflags "-X main.version=${{ github.event.release.tag_name }}" - name: Compress portable binary working-directory: ./build/bin @@ -76,7 +76,7 @@ jobs: - name: Build Windows NSIS installer shell: bash - run: CGO_ENABLED=1 wails build -clean -platform ${{ matrix.platform }} -nsis -ldflags "-X main.version=${{ github.event.release.tag_name }}" + run: CGO_ENABLED=1 wails build -clean -platform ${{ matrix.platform }} -nsis -upx -webview2 embed -ldflags "-X main.version=${{ github.event.release.tag_name }}" - name: Codesign Windows NSIS installer working-directory: ./build/bin diff --git a/build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control b/build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control index 9565e07..38e15f9 100644 --- a/build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control +++ b/build/linux/tiny-rdm_0.0.0_amd64/DEBIAN/control @@ -1,7 +1,6 @@ Package: {{.Name}} Version: {{.Info.ProductVersion}} Section: base -Depends: libc6 (>= 2.34), libc6 (>= 2.32) Priority: optional Architecture: amd64 Maintainer: {{.Author.Name}} <{{.Author.Email}}> diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 6d81b69..ed54e4f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -11,7 +11,7 @@ import AddFieldsDialog from './components/dialogs/AddFieldsDialog.vue' import AppContent from './AppContent.vue' import GroupDialog from './components/dialogs/GroupDialog.vue' import DeleteKeyDialog from './components/dialogs/DeleteKeyDialog.vue' -import { computed, onBeforeMount, onMounted, ref } from 'vue' +import { computed, onBeforeMount, ref } from 'vue' import usePreferencesStore from './stores/preferences.js' import useConnectionStore from './stores/connections.js' import { useI18n } from 'vue-i18n'