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

[WIP] Build from source v2 #222

Draft
wants to merge 62 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
fe94682
Build from source
ghisvail Jan 31, 2021
086cea9
fix lint errors
proletarius101 Jan 24, 2023
8b130b6
fix build errors
proletarius101 Jan 24, 2023
0e25feb
fix artifacts path
proletarius101 Jan 24, 2023
a5c1111
fix icon installation failed
proletarius101 Jan 24, 2023
937e45e
Update & simplify the auto-update action
proletarius101 Jan 24, 2023
72a0269
fix `module-bitwarden-desktop-source-git-url-not-http`
proletarius101 Jan 24, 2023
aedd2b4
Update generated sources
proletarius101 Jan 24, 2023
7b9c4c8
fix `Error: Cannot find module '@bitwarden/desktop-native-linux-x64-m…
proletarius101 Jan 24, 2023
7c51811
misc fixes
proletarius101 Jan 24, 2023
f238d44
fix missing 128x128 icon in ci
proletarius101 Jan 24, 2023
28fa064
restore separate locales
proletarius101 Jan 24, 2023
8114cce
cleanup
proletarius101 Jan 24, 2023
aa91d0a
revert deprecated/unnecessary changes
proletarius101 Jan 24, 2023
7cf7e0a
aarch64 is not supported yet
proletarius101 Jan 24, 2023
6659793
revert deprecated/unnecessary changes
proletarius101 Jan 24, 2023
6b2388e
add build from source support for bitwarden-cli
proletarius101 Jan 25, 2023
e62a896
enable build for aarch64
proletarius101 Jan 25, 2023
5562f3e
add more comments
proletarius101 Jan 25, 2023
4742c22
Update version
Oct 25, 2024
da58235
Update to 2024.10.1
quexten Oct 28, 2024
4e459b8
Update com.bitwarden.desktop.yaml
quexten Oct 29, 2024
2d2d5f5
Update com.bitwarden.desktop.yaml
quexten Oct 29, 2024
b5fa9e9
Update flathub.json
quexten Oct 29, 2024
dc236a6
Update com.bitwarden.desktop.yaml
quexten Oct 29, 2024
59e4c91
Delete flathub.json
quexten Oct 29, 2024
898c88f
Update com.bitwarden.desktop.yaml
quexten Oct 29, 2024
aa8c5ba
Sync permissions with current release
quexten Oct 29, 2024
4d850c4
Update permissions
quexten Oct 29, 2024
0f68ad3
enable window decorations in native wayland
Eeebru Oct 29, 2024
2f56e0d
Merge branch 'master' into feat/build-from-source
quexten Oct 29, 2024
323364b
Re-add accidentally removed libsecret module
quexten Oct 29, 2024
806248b
Use upstream .desktop file
quexten Oct 29, 2024
9264b00
Move back to x11 socket
quexten Oct 29, 2024
11ce8f4
Remove .desktop file
quexten Oct 29, 2024
452e20d
Attempt to fix arm64 and remove legacy architectures
quexten Oct 29, 2024
58d1df9
Cleanup
quexten Oct 30, 2024
11d77f3
update auto-update workflow
Eeebru Oct 30, 2024
affdb4a
update auto-update workflow
Eeebru Oct 30, 2024
2a9d50a
update workflow
Eeebru Oct 30, 2024
4c40b72
Update Node.js generated sources
Eeebru Oct 30, 2024
067a849
fix a typo
Eeebru Oct 30, 2024
4ca5d61
remove prepare script
Eeebru Oct 30, 2024
17ac538
Update generated sources
Eeebru Oct 30, 2024
fc14d97
remove comments
Eeebru Oct 30, 2024
2734e0f
Merge branch 'feat/build-from-source' of github.com:bitwarden/com.bit…
Eeebru Oct 30, 2024
73fda94
Update generated sources
Eeebru Oct 30, 2024
7fbfede
Update auto-update.yml
quexten Oct 31, 2024
ef49656
Update generated sources
quexten Oct 31, 2024
7979be7
Merge branch 'master' into feat/build-from-source
Eeebru Oct 31, 2024
65f0d47
Add package lock to nodejs autogenerator
quexten Oct 31, 2024
d3db139
Update generated sources
quexten Oct 31, 2024
fea644e
Attempt to fix node sources generation
quexten Oct 31, 2024
607642a
Update auto-update.yml
quexten Oct 31, 2024
3b9f456
Update auto-update.yml
quexten Oct 31, 2024
0d8b34f
Update auto-update.yml
quexten Oct 31, 2024
6d5174d
Update auto-update.yml
quexten Oct 31, 2024
11d2a28
Update auto-update.yml
quexten Oct 31, 2024
1821a55
Update auto-update.yml
quexten Oct 31, 2024
16ca04a
Update generated sources
quexten Oct 31, 2024
ef2ee70
Use repo tag
Eeebru Nov 4, 2024
cf18705
Update generated sources
Eeebru Nov 4, 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
54 changes: 54 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Auto update

on:
push:

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Setup environment variables
run: |
echo "FLATPAK_BUILDER_TOOLS_DIR=/tmp/flatpak-builder-tools" >> $GITHUB_ENV
echo "BITWARDEN_DESKTOP_VERSION="$(yq '.modules[1].sources[0].tag' 'com.bitwarden.desktop.yaml')"" >> $GITHUB_ENV

- name: Setup flatpak-builder-tools
run: |
git clone --depth=1 https://github.com/flatpak/flatpak-builder-tools ${FLATPAK_BUILDER_TOOLS_DIR}
pip install --user pipx && pipx install ${FLATPAK_BUILDER_TOOLS_DIR}/node
pip install --user toml aiohttp

# Need to replace git+ssh with git+https:// since Flathub only supports git+http(s)://
- name: Update Node.js generated sources
run: |
wget "https://github.com/bitwarden/clients/raw/${BITWARDEN_DESKTOP_VERSION}/package-lock.json" -O package-lock.json

sed -i -e "s,git+ssh://[email protected]/,git+https://github.com/,g" package-lock.json

flatpak-node-generator --electron-node-headers npm package-lock.json -o node-sources.json
rm package-lock.json

- name: Update Rust generated sources
run: |
wget "https://github.com/bitwarden/clients/raw/${BITWARDEN_DESKTOP_VERSION}/apps/desktop/desktop_native/Cargo.lock" -O Cargo.lock
python3 ${FLATPAK_BUILDER_TOOLS_DIR}/cargo/flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json
rm Cargo.lock

- name: Commit updates
run: |
set -e

[[ ! $(git status --porcelain) ]] && exit 0

git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config user.name "Workflow trigger"

git add node-sources.json cargo-sources.json
git commit -m 'Update generated sources'

git push https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}
Loading