Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-927, ENG-735, ENG-766] Fix Updater & Tauri 1.5 #1361

Merged
merged 41 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e79a05c
custom updater with toasts
Brendonovich Sep 19, 2023
5b4a95e
new state management + updated router route
Brendonovich Sep 20, 2023
47b5a79
tauri-specific update route
Brendonovich Sep 20, 2023
afae9fd
ref
Brendonovich Sep 20, 2023
3459d73
update in prod only
Brendonovich Sep 20, 2023
d6af6c5
Merge branch 'main' into eng-927-fix-updater
Brendonovich Sep 20, 2023
423e862
change 'Install' to 'Update'
Brendonovich Sep 21, 2023
9d1ff7b
Merge branch 'main' into eng-927-fix-updater
Brendonovich Sep 21, 2023
25e081a
Merge branch 'main' into eng-927-fix-updater
Brendonovich Sep 29, 2023
b22d683
fix tsconfig
Brendonovich Sep 29, 2023
23645b6
desktop tauri
Brendonovich Sep 29, 2023
aff2966
remove tauri patch
Brendonovich Sep 29, 2023
b67026a
tauri 1.5
Brendonovich Sep 29, 2023
0cedd1d
tauri 1.5
Brendonovich Sep 30, 2023
5aea762
Merge branch 'main' into eng-927-fix-updater
Brendonovich Sep 30, 2023
f767105
use tauri script
Brendonovich Sep 30, 2023
da64816
native-deps
Brendonovich Sep 30, 2023
0cb50b3
Merge remote-tracking branch 'origin/main' into eng-927-fix-updater
HeavenVolkoff Oct 4, 2023
896cd69
Rework preprep and tauri script to better support tauri 1.5
HeavenVolkoff Oct 4, 2023
8d5c6c2
Update to tauri 1.5.1
HeavenVolkoff Oct 4, 2023
169c588
Fix tauri updater not building due to missing key
HeavenVolkoff Oct 4, 2023
581570d
Fix ctrl+c/ctrl+v typo
HeavenVolkoff Oct 4, 2023
938f975
Normalie @tanstack/react-query version through workspace
HeavenVolkoff Oct 4, 2023
62ae2f1
Fix linux prod and dev builds
HeavenVolkoff Oct 4, 2023
124af69
Normalize dev deps in workspace
HeavenVolkoff Oct 4, 2023
3132041
Fix CI and server docker
HeavenVolkoff Oct 4, 2023
77f60c7
Fix windows
HeavenVolkoff Oct 4, 2023
179ff94
Attempt to fix server, mobile, deb and release updater
HeavenVolkoff Oct 4, 2023
efed150
Attempt to fix deb and mobile again
HeavenVolkoff Oct 4, 2023
64f0a38
Github doesn't have arm runners
HeavenVolkoff Oct 4, 2023
226a483
Merge remote-tracking branch 'origin/main' into eng-927-fix-updater
HeavenVolkoff Oct 4, 2023
77de29e
Publish deb and updater artifacts
HeavenVolkoff Oct 5, 2023
471c3c2
Merge remote-tracking branch 'origin/main' into eng-927-fix-updater
HeavenVolkoff Oct 5, 2023
0966404
Merge remote-tracking branch 'origin/main' into eng-927-fix-updater
HeavenVolkoff Oct 5, 2023
fb83cbf
remove version from asset name
Brendonovich Oct 7, 2023
14c8a3b
update commands
Brendonovich Oct 9, 2023
221ae2e
Merge branch 'main' into eng-927-fix-updater
Brendonovich Oct 9, 2023
844982f
log release
Brendonovich Oct 9, 2023
0373fed
Some logs on updater errors
fogodev Oct 10, 2023
0567bc4
show updater errors on frontend
Brendonovich Oct 10, 2023
3e7a03a
fix desktop ui caching
Brendonovich Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .cargo/config.toml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
{{#protoc}}
PROTOC = "{{{protoc}}}"
{{/protoc}}
{{#ffmpeg}}
FFMPEG_DIR = "{{{ffmpeg}}}"
{{/ffmpeg}}
{{^isLinux}}
FFMPEG_DIR = "{{{nativeDeps}}}"
{{/isLinux}}

{{#isMacOS}}
[target.x86_64-apple-darwin]
rustflags = ["-L", "{{{projectRoot}}}/target/Frameworks/lib"]
rustflags = ["-L", "{{{nativeDeps}}}/lib"]

[target.x86_64-apple-darwin.heif]
rustc-link-search = ["{{{projectRoot}}}/target/Frameworks/lib"]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]

[target.aarch64-apple-darwin]
rustflags = ["-L", "{{{projectRoot}}}/target/Frameworks/lib"]
rustflags = ["-L", "{{{nativeDeps}}}/lib"]

[target.aarch64-apple-darwin.heif]
rustc-link-search = ["{{{projectRoot}}}/target/Frameworks/lib"]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
{{/isMacOS}}

{{#isWin}}
[target.x86_64-pc-windows-msvc]
rustflags = ["-L", "{{{projectRoot}}}\\target\\Frameworks\\lib"]
rustflags = ["-L", "{{{nativeDeps}}}\\lib"]

[target.x86_64-pc-windows-msvc.heif]
rustc-link-search = ["{{{projectRoot}}}\\target\\Frameworks\\lib"]
rustc-link-search = ["{{{nativeDeps}}}\\lib"]
rustc-link-lib = ["heif"]
{{/isWin}}

{{#isLinux}}
[target.x86_64-unknown-linux-gnu]
rustflags = ["-L", "{{{projectRoot}}}/target/Frameworks/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive"]
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive"]

[target.x86_64-unknown-linux-gnu.heif]
rustc-link-search = ["{{{projectRoot}}}/target/Frameworks/lib"]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]

[target.aarch64-unknown-linux-gnu]
rustflags = ["-L", "{{{projectRoot}}}/target/Frameworks/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive"]
rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/spacedrive"]

[target.aarch64-unknown-linux-gnu.heif]
rustc-link-search = ["{{{projectRoot}}}/target/Frameworks/lib"]
rustc-link-search = ["{{{nativeDeps}}}/lib"]
rustc-link-lib = ["heif"]
{{/isLinux}}

Expand Down
36 changes: 18 additions & 18 deletions .github/actions/publish-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ runs:
if-no-files-found: error
retention-days: 1

# - name: Publish artifacts (Debian - deb)
# if: ${{ matrix.settings.host == 'ubuntu-20.04' }}
# uses: actions/upload-artifact@v3
# with:
# name: Spacedrive-deb-${{ inputs.target }}-${{ env.GITHUB_SHA_SHORT }}
# path: target/${{ inputs.target }}/${{ inputs.profile }}/bundle/deb/*.deb
# if-no-files-found: error
# retention-days: 1
- name: Publish artifacts (Debian - deb)
if: ${{ matrix.settings.host == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v3
with:
name: Spacedrive-deb-${{ inputs.target }}-${{ env.GITHUB_SHA_SHORT }}
path: target/${{ inputs.target }}/${{ inputs.profile }}/bundle/deb/*.deb
if-no-files-found: error
retention-days: 1

- name: Publish artifacts (Windows - msi)
if: ${{ matrix.settings.host == 'windows-latest' }}
Expand All @@ -50,13 +50,13 @@ runs:
if-no-files-found: error
retention-days: 1

# - name: Publish updater binaries
# uses: actions/upload-artifact@v3
# with:
# name: Spacedrive-Updaters-${{ inputs.target }}-${{ env.GITHUB_SHA_SHORT }}
# path: |
# target/${{ inputs.target }}/${{ inputs.profile }}/bundle/**/*.tar.gz*
# target/${{ inputs.target }}/${{ inputs.profile }}/bundle/**/*.zip*
# !target/**/deb/**/*.tar.gz
# if-no-files-found: error
# retention-days: 1
- name: Publish updater binaries
uses: actions/upload-artifact@v3
with:
name: Spacedrive-Updaters-${{ inputs.target }}-${{ env.GITHUB_SHA_SHORT }}
path: |
target/${{ inputs.target }}/${{ inputs.profile }}/bundle/**/*.tar.gz*
target/${{ inputs.target }}/${{ inputs.profile }}/bundle/**/*.zip*
!target/**/deb/**/*.tar.gz
if-no-files-found: error
retention-days: 1
4 changes: 2 additions & 2 deletions .github/actions/setup-system/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ runs:
TARGET_TRIPLE: ${{ inputs.target }}
GITHUB_TOKEN: ${{ inputs.token }}
run: |
pushd ..
npm i archive-wasm mustache
pushd scripts
npm i --production
popd
node scripts/preprep.mjs
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ jobs:
# target: aarch64-pc-windows-msvc
- host: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bundles: appimage
bundles: appimage,deb
# - host: ubuntu-20.04
# target: x86_64-unknown-linux-musl
# - host: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# bundles: deb # no appimage for now unfortunetly
# - host: ubuntu-20.04
# target: aarch64-unknown-linux-musl
# - host: ubuntu-20.04
Expand Down Expand Up @@ -95,7 +96,7 @@ jobs:

- name: Build
run: |
pnpm tauri build --ci -v --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }}
pnpm tauri build --ci -v --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }},updater
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
Expand All @@ -107,7 +108,6 @@ jobs:
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NODE_OPTIONS: --max-old-space-size=4096

- name: Publish Artifacts
uses: ./.github/actions/publish-artifacts
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
build-args: |
REPO=${{ steps.image_info.outputs.repo }}
REPO_REF=${{ steps.image_info.outputs.repo_ref }}
NODE_OPTIONS: "--max-old-space-size=4096"
containerfiles: |
./apps/server/docker/Dockerfile

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ packages/*/node_modules
packages/*/data
apps/*/data
apps/*/stats.html
apps/.deps
apps/releases/.vscode
apps/desktop/src-tauri/tauri.conf.patch.json
apps/desktop/src-tauri/*.dll
Expand Down Expand Up @@ -78,7 +79,6 @@ dev.db-journal
sd_init.json

spacedrive
scripts/.tmp
.cargo/config
.cargo/config.toml
.github/scripts/deps
Loading