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

fix: finalize basic Windows build #139

Merged
merged 74 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
b7a55ef
feat: add title bar
ivangabriele Jun 9, 2024
6cabb04
ci(github): prepare next MSI build with sidecars
ivangabriele Jun 15, 2024
1961b2d
ci(github): normalize workflow events & enable pull request auto-canc…
ivangabriele Jun 15, 2024
16ecc64
ci(github): add Chocolatey installation step in next MSI build workflow
ivangabriele Jun 15, 2024
9d3967c
refactor: re-lint project
ivangabriele Aug 23, 2024
f1c5cbb
ci(husky): update hooks following v9 deprecations
ivangabriele Aug 23, 2024
56b8193
build(clamav): bump from v1.3.1 to v1.4.0
ivangabriele Aug 23, 2024
67275b5
build(npm): add test:unit:webview:debug & test:unit:webview:watch scr…
ivangabriele Aug 25, 2024
e7bc843
build(tsc): enable incremental build
ivangabriele Aug 25, 2024
366c4c9
build(scripts): add Windows resources download, extraction & verifica…
ivangabriele Aug 25, 2024
a22ccdf
build(scripts): fix Windows ClamAV standalone build download slug for…
ivangabriele Aug 25, 2024
1159345
ci(github): add missing target arg in MSI build job
ivangabriele Aug 25, 2024
be1faac
build(npm): rename release to bundle
ivangabriele Aug 25, 2024
6fe1363
ci(github): disable arm64ec-pc-windows-msvc target in MSI bundle job
ivangabriele Aug 25, 2024
07610c4
ci(github): enable artifact upload in MSI bundle job
ivangabriele Aug 25, 2024
b795ae0
ci(github): uncomment unit workflow jobs
ivangabriele Aug 25, 2024
17f4503
build(scripts): skip prepare_core_build script if target is undefined
ivangabriele Aug 25, 2024
9b2d705
ci(github): re-comment legacy unit workflow jobs
ivangabriele Aug 25, 2024
61dd22e
ci(github): uncomment integration workflow job
ivangabriele Aug 25, 2024
f22e575
ci(github): add ARM64EC architecture MSI bundle job
ivangabriele Aug 25, 2024
172ebf1
ci(github): uncomment analysis workflow jobs
ivangabriele Aug 25, 2024
404fa19
ci(github): add missing target in MSI bundle job name
ivangabriele Aug 25, 2024
0d0f0eb
build(cargo): upgrade all dependencies
ivangabriele Aug 25, 2024
6194f5d
lint(prettier): force single quote in YAML files
ivangabriele Aug 25, 2024
f717947
refactor(core/scanner): remove unused code
ivangabriele Aug 25, 2024
c11e431
build(cargo): add missing updated toml file
ivangabriele Aug 25, 2024
0670d66
build(npm): fix typo in bundle:msi:arm64 command
ivangabriele Aug 26, 2024
8bd43c8
ci(github): disable failed ARM64EC MSI bundle job attempt
ivangabriele Aug 26, 2024
1831a93
feat(sidecars): link clamd, clamscan & freshclam binaries
ivangabriele Aug 26, 2024
3606f02
build(tauri): explicit some config props
ivangabriele Aug 26, 2024
1368bd3
build(scripts): fix template litteral in prepare_core_build script
ivangabriele Aug 26, 2024
0a1efe3
build: add x32 arch to DEB bundle
ivangabriele Aug 26, 2024
5dc992a
build: set x64 arch to DMG bundle
ivangabriele Aug 26, 2024
2e2fa07
ci(github): disable fail-fast in bundle workflow jobs
ivangabriele Aug 26, 2024
13a5a7a
ci(github): add rust target for DEB bundle job
ivangabriele Aug 26, 2024
a8c563b
ci(github): fix typo in bundle workflow upload paths
ivangabriele Aug 26, 2024
c7fa7f6
ci(github): limit release workflow trigger to workflow_dispatch
ivangabriele Aug 26, 2024
a181c09
ci(github): disable x32 arch for DEB bundle job
ivangabriele Aug 26, 2024
93b224e
build(scripts): add default target in prepare_core_build script
ivangabriele Aug 26, 2024
414d3cd
ci(github): disable fail-fast for macos/windows unit test job
ivangabriele Aug 26, 2024
fc3df27
ci(github): remove actions-rs/toolchain step from macos/window unit t…
ivangabriele Aug 26, 2024
864628d
ci(github): add missing sidecars build steps in unit workflow
ivangabriele Aug 26, 2024
007cc86
build(makefile): remove legacy jest lib test commands
ivangabriele Aug 26, 2024
cadcd35
ci(github): add missing sidecars renaming in unit workflow
ivangabriele Aug 26, 2024
ccbd772
build(npm): fix cd in build:sidecars script
ivangabriele Aug 26, 2024
caae0db
build(scripts): fix typo in prepare_core_build script
ivangabriele Aug 26, 2024
d7fae9c
build(scripts): skip standlone download if exist in prepare_core_buil…
ivangabriele Aug 26, 2024
3e4b8b4
build(npm): add predev script
ivangabriele Aug 26, 2024
cd8efb1
feat(core/dashboard): prepare OS condition in get_dashboard_state()
ivangabriele Aug 26, 2024
0e03b2d
feat(core/cloud): prepare OS conditions in get_cloud_state()
ivangabriele Aug 26, 2024
a24f8f9
build(cargo): enable tauri process-command-api feature
ivangabriele Aug 26, 2024
b1492dd
build(tauri): config clamd, clamscan & freshclam sidecars
ivangabriele Aug 26, 2024
a2fea62
feat(core/cloud): link freshclam sidecar to start_cloud_update() for …
ivangabriele Aug 26, 2024
424aea1
build(tauri): align shortDescription with productName
ivangabriele Aug 26, 2024
30d9e63
build(npm): add bundle:msi:install script
ivangabriele Aug 26, 2024
10aa39b
build(npm): add bundle:msi:uninstall script
ivangabriele Aug 26, 2024
f4c9476
build(scripts): lower not found install to warning in uninstall_msi_b…
ivangabriele Aug 27, 2024
c297ab6
docs(contributors): add tauri extra documentation
ivangabriele Aug 27, 2024
5cebdd8
build(resources): move resources/ directory into src-tauri/
ivangabriele Aug 27, 2024
bed6271
build(resources): add initial freshclam v1.4.0 config file
ivangabriele Aug 27, 2024
94f59f8
refactor(sidecars): simplify binary path resolution
ivangabriele Aug 27, 2024
cd9f320
build(meta): move meta data into resources & imitialize migrations
ivangabriele Aug 27, 2024
509135f
ci(git): simplify resources ignores
ivangabriele Aug 27, 2024
0b4cb91
build(npm): uninstall before install in bundle:msi:install script
ivangabriele Aug 27, 2024
67f7d2a
build(resources): remove useless .gitkeep
ivangabriele Aug 27, 2024
76f9438
lint(rustfmt): set max_width to 120
ivangabriele Aug 28, 2024
458aa81
build(cargo): disable publish for dev package
ivangabriele Aug 28, 2024
ac3e512
build(cargo): disable publish for cli package
ivangabriele Aug 28, 2024
d6aa6ae
build(cargo): disable publish for common package
ivangabriele Aug 28, 2024
c070745
build(cargo): disable publish for filer package
ivangabriele Aug 28, 2024
bab8592
feat(core/config): create package
ivangabriele Aug 28, 2024
a33d583
feat(core/config): finalize v1.4.0 clamscan config
ivangabriele Aug 28, 2024
db7e26e
feat(copilot): finalize Copilot module for Windows
ivangabriele Aug 28, 2024
55f0679
feat(core/cloud): finalize basic start_cloud_update command for all OS
ivangabriele Aug 28, 2024
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
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ trim_trailing_whitespace = true
max_line_length = 0
trim_trailing_whitespace = false

[*.{c,cpp,h,hpp}]
indent_size = 4

[*.ps1]
indent_size = 4

[*.py]
indent_size = 4

Expand All @@ -31,3 +37,12 @@ max_line_length = 0
indent_size = 8
indent_style = tab
max_line_length = 80

# Ignored files
[*.{asc,cer,crt,der,key,pem}]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
9 changes: 8 additions & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
# Every day at 12:00 UTC
- cron: '0 12 * * *'

concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
codeql:
name: CodeQL (${{ matrix.label }})
Expand All @@ -19,7 +23,6 @@ jobs:
security-events: write
# Required to fetch internal or private CodeQL packs
packages: read

strategy:
fail-fast: false
matrix:
Expand All @@ -33,6 +36,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand All @@ -53,6 +58,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run
Expand Down
78 changes: 0 additions & 78 deletions .github/workflows/build.yml

This file was deleted.

139 changes: 139 additions & 0 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
name: Bundle

on:
push:
branches: ['main']
pull_request:
branches: ['main']

concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
bundle_deb:
name: Bundle DEB (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
# target: ['i686-unknown-linux-gnu', 'x86_64-unknown-linux-gnu']
target: ['x86_64-unknown-linux-gnu']
runs-on: ubuntu-latest
container:
image: ivangabriele/tauri:debian-bullseye-18
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Rust
run: rustup target add ${{ matrix.target }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- name: Install
run: yarn
- name: Bundle
run: yarn bundle:deb --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ci-release-deb
path: src-tauri/target/${{ matrix.target }}release/bundle/deb/*.deb
retention-days: 1

bundle_dmg:
name: Bundle DMG (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
target: ['aarch64-apple-darwin']
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- name: Install
run: yarn
- name: Bundle
run: yarn bundle:dmg --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ci-release-dmg
path: src-tauri/targe/${{ matrix.target }}/release/bundle/dmg/*.dmg
retention-days: 1

bundle_msi:
name: Bundle MSI (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
# target: ['arm64ec-pc-windows-msvc', 'i686-pc-windows-msvc', 'x86_64-pc-windows-msvc']
target: ['i686-pc-windows-msvc', 'x86_64-pc-windows-msvc']
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- name: Install
run: yarn
- name: Bundle
run: yarn bundle:msi --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ci-release-msi
path: src-tauri/target/${{ matrix.target }}release/bundle/msi/*.msi
retention-days: 1

# bundle_msi_arm64:
# name: Bundle MSI (arm64ec-pc-windows-msvc)
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: false
# - name: Setup Rust
# uses: dtolnay/rust-toolchain@master
# with:
# targets: 'arm64ec-pc-windows-msvc'
# toolchain: nightly
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# cache: yarn
# node-version: 20
# - name: Install
# run: yarn
# - name: Bundle
# run: yarn bundle:msi --target arm64ec-pc-windows-msvc
# env:
# TARGET: 'arm64ec-pc-windows-msvc'
# - name: Upload
# uses: actions/upload-artifact@v4
# with:
# name: ci-release-msi
# path: src-tauri/target/release/bundle/msi/*.msi
# retention-days: 1
Loading
Loading