Skip to content

Commit 045699c

Browse files
authored
Merge pull request #131 from GlitterWare/dev
v1.9.0 - Files and Attachments
2 parents f69bf2b + b07dae9 commit 045699c

File tree

191 files changed

+10821
-2989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+10821
-2989
lines changed

.github/workflows/arm64.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#! /bin/bash
2+
cd /Passy
3+
4+
echo "===================================================="
5+
echo "Install dependencies"
6+
echo "===================================================="
7+
8+
apt-get update
9+
DEBIAN_FRONTEND=noninteractive apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync libayatana-appindicator3-dev libmpv-dev mpv git file unzip zip wget curl libc6
10+
11+
echo "===================================================="
12+
echo "Configure"
13+
echo "===================================================="
14+
15+
mkdir /passy-build/cli
16+
mkdir /passy-build/Passy
17+
mkdir /passy-build/Passy-No-Updates-Popup
18+
export PATH="$PATH:$PWD/submodules/flutter/bin"
19+
git config --global --add safe.directory /Passy
20+
git config --global --add safe.directory /Passy/submodules/flutter
21+
git config --global --add safe.directory /Passy/submodules/phc-winner-argon2
22+
git submodule init
23+
git submodule update
24+
25+
echo "===================================================="
26+
echo "Install flutter"
27+
echo "===================================================="
28+
29+
flutter doctor
30+
31+
echo "===================================================="
32+
echo "Configure flutter"
33+
echo "===================================================="
34+
35+
flutter config --no-analytics
36+
37+
echo "===================================================="
38+
echo "Build Passy CLI"
39+
echo "===================================================="
40+
41+
bash build_cli.sh
42+
cp -r /Passy/build/cli/latest/. /passy-build/passy-cli
43+
44+
echo "===================================================="
45+
echo "Build Passy"
46+
echo "===================================================="
47+
48+
flutter build linux
49+
cp -r /Passy/build/linux/arm64/release/bundle/. /passy-build/Passy
50+
51+
echo "===================================================="
52+
echo "Build Passy No Updates Popup"
53+
echo "===================================================="
54+
55+
flutter build linux --dart-define=UPDATES_POPUP_ENABLED=false
56+
cp -r /Passy/build/linux/arm64/release/bundle/. /passy-build/Passy-No-Updates-Popup
57+
58+
echo "All Done!"

.github/workflows/armv7.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "Install dependencies"
66
echo "===================================================="
77

88
apt-get update
9-
apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync git file unzip zip wget curl libc6
9+
DEBIAN_FRONTEND=noninteractive apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync git file unzip zip wget curl libc6
1010

1111
echo "===================================================="
1212
echo "Configure"
@@ -27,7 +27,7 @@ flutter doctor
2727
export LAST_PWD=$PWD
2828
cd submodules/flutter/bin/cache
2929
rm -rf dart-sdk
30-
wget https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.1/sdk/dartsdk-linux-arm-release.zip
30+
cp /passy-bin/dartsdk-linux-arm-release.zip .
3131
unzip dartsdk-linux-arm-release.zip
3232
rm dartsdk-linux-arm-release.zip
3333
cd $LAST_PWD
@@ -56,6 +56,6 @@ echo "Prepare releases"
5656
echo "===================================================="
5757

5858
cd /passy-build
59-
mkdir cli
60-
cp -r /Passy/build/cli/latest/. cli
59+
mkdir passy-cli
60+
cp -r /Passy/build/cli/latest/. passy-cli
6161

.github/workflows/build-all-ci.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ on:
99
jobs:
1010
build_android:
1111
name: Build Passy for Android
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616
- name: Install dependencies
1717
shell: bash
1818
run: |
1919
sudo apt-get update
20-
sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync
20+
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync
2121
- name: Set up JDK 17
2222
uses: actions/setup-java@v4
2323
with:
@@ -48,15 +48,15 @@ jobs:
4848
path: /home/runner/work/Passy/build/Passy-Android.apk
4949
build_linux:
5050
name: Build Passy for Linux
51-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-20.04
5252
steps:
5353
- name: Checkout repository
5454
uses: actions/checkout@v4
5555
- name: Install dependencies
5656
shell: bash
5757
run: |
5858
sudo apt-get update
59-
sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync
59+
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync libayatana-appindicator3-dev libmpv-dev mpv
6060
- name: Install flutter
6161
shell: bash
6262
run: |
@@ -139,6 +139,20 @@ jobs:
139139
with:
140140
name: linux-appimage-no-updates-popup
141141
path: /home/runner/work/Passy/build/Passy-Linux-AppImage.zip
142+
build_linux_snap:
143+
name: Build Passy for Snap Store
144+
runs-on: ubuntu-22.04
145+
steps:
146+
- name: Checkout repository
147+
uses: actions/checkout@v4
148+
- name: Build Linux Snap
149+
uses: snapcore/action-build@v1
150+
id: snapcraft
151+
- name: Upload Linux Snap
152+
uses: actions/upload-artifact@v4
153+
with:
154+
name: linux-snap
155+
path: ${{ steps.snapcraft.outputs.snap }}
142156
build_windows:
143157
name: Build Passy for Windows
144158
runs-on: windows-latest
@@ -158,14 +172,25 @@ jobs:
158172
- name: Build Passy for Windows
159173
shell: bash
160174
run: flutter --no-version-check --suppress-analytics build windows
175+
- name: Build Windows .exe installer
176+
shell: bash
177+
run: |
178+
echo "C:/Program Files (x86)/Inno Setup 6" >> $GITHUB_PATH
179+
iscc passy.iss
161180
- name: Prepare releases
162181
shell: bash
163182
run: |
164183
cd ..
165184
mkdir -p build/windows-portable/Passy
166185
cp -r Passy/build/windows/x64/runner/Release/. build/windows-portable/Passy
186+
cp Passy/build/Passy-Windows-Installer.exe build/Passy-Windows-Installer.exe
167187
- name: Upload Windows portable build
168188
uses: actions/upload-artifact@v4
169189
with:
170190
name: windows-portable
171191
path: D:\a\Passy\build\windows-portable
192+
- name: Upload Windows .exe installer
193+
uses: actions/upload-artifact@v4
194+
with:
195+
name: windows-exe-installer
196+
path: D:\a\Passy\build\Passy-Windows-Installer.exe
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build Passy for Linux ARM64
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
types: [ opened, synchronize, reopened, review_requested ]
6+
branches:
7+
- main
8+
- dev
9+
jobs:
10+
build_linux_arm64:
11+
name: Build Passy for Linux ARM64
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v2.1.0
18+
- name: Create build directory
19+
shell: bash
20+
run: |
21+
cd ..
22+
mkdir build
23+
mkdir bin
24+
cd bin
25+
wget https://raw.githubusercontent.com/GlitterWare/Passy/$GITHUB_SHA/.github/workflows/arm64.sh
26+
chmod +x arm64.sh
27+
- name: Install dependencies
28+
shell: bash
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y qemu binfmt-support qemu-user-static qemu-system-arm
32+
- name: Build for ARM64
33+
uses: tj-actions/docker-run@v2
34+
with:
35+
image: ubuntu:20.04
36+
name: ubuntu
37+
options: --rm --platform linux/arm64 -v $PWD:/Passy -v /home/runner/work/Passy/build:/passy-build -v /home/runner/work/Passy/bin:/passy-bin
38+
args: /passy-bin/arm64.sh
39+
- name: Archive Passy CLI build
40+
uses: thedoctor0/zip-release@0.7.1
41+
with:
42+
type: zip
43+
directory: ../build
44+
filename: Passy-CLI-Linux-ARM64.zip
45+
path: passy-cli
46+
- name: Archive Passy build
47+
uses: thedoctor0/zip-release@0.7.1
48+
with:
49+
type: zip
50+
directory: ../build
51+
filename: Passy-Linux-ARM64.zip
52+
path: Passy
53+
- name: Move Passy No Updates Popup build
54+
shell: bash
55+
run: |
56+
sudo rm -rf ../build/Passy
57+
sudo mv ../build/Passy-No-Updates-Popup ../build/Passy
58+
- name: Archive Passy No Updates Popup build
59+
uses: thedoctor0/zip-release@0.7.1
60+
with:
61+
type: zip
62+
directory: ../build
63+
filename: Passy-Linux-ARM64-No-Updates-Popup.zip
64+
path: Passy
65+
- name: Upload Passy CLI build
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: passy-cli-linux-arm64
69+
path: /home/runner/work/Passy/build/Passy-CLI-Linux-ARM64.zip
70+
- name: Upload Passy build
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: passy-linux-arm64
74+
path: /home/runner/work/Passy/build/Passy-Linux-ARM64.zip
75+
- name: Upload Passy No Updates Popup build
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: passy-linux-arm64-no-updates-popup
79+
path: /home/runner/work/Passy/build/Passy-Linux-ARM64-No-Updates-Popup.zip

.github/workflows/build-linux-armv7-ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build_linux_armv7:
1111
name: Build Passy CLI for Linux ARMv7
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
@@ -26,11 +26,18 @@ jobs:
2626
chmod +x armv7.sh
2727
- name: Install dependencies
2828
shell: bash
29-
run: sudo apt install -y qemu binfmt-support qemu-user-static qemu-system-arm
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y qemu binfmt-support qemu-user-static qemu-system-arm
32+
- name: Download Dart
33+
shell: bash
34+
run: |
35+
cd ../bin
36+
wget https://storage.googleapis.com/dart-archive/channels/stable/release/3.4.4/sdk/dartsdk-linux-arm-release.zip
3037
- name: Build for ARMv7
3138
uses: tj-actions/docker-run@v2
3239
with:
33-
image: ubuntu:latest
40+
image: ubuntu:22.04
3441
name: ubuntu
3542
options: --rm --platform linux/arm/v7 -v $PWD:/Passy -v /home/runner/work/Passy/build:/passy-build -v /home/runner/work/Passy/bin:/passy-bin
3643
args: /passy-bin/armv7.sh
@@ -40,7 +47,7 @@ jobs:
4047
type: zip
4148
directory: ../build
4249
filename: Passy-CLI-Linux-ARMv7.zip
43-
path: cli
50+
path: passy-cli
4451
- name: Upload Passy CLI build
4552
uses: actions/upload-artifact@v4
4653
with:

.github/workflows/build-windows-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,25 @@ jobs:
2121
- name: Build Passy for Windows
2222
shell: bash
2323
run: flutter --no-version-check --suppress-analytics build windows
24+
- name: Build Windows .exe installer
25+
shell: bash
26+
run: |
27+
echo "C:/Program Files (x86)/Inno Setup 6" >> $GITHUB_PATH
28+
iscc passy.iss
2429
- name: Prepare releases
2530
shell: bash
2631
run: |
2732
cd ..
2833
mkdir -p build/windows-portable/Passy
2934
cp -r Passy/build/windows/x64/runner/Release/. build/windows-portable/Passy
35+
cp Passy/build/Passy-Windows-Installer.exe build/Passy-Windows-Installer.exe
3036
- name: Upload Windows portable build
3137
uses: actions/upload-artifact@v4
3238
with:
3339
name: windows-portable
3440
path: D:\a\Passy\build\windows-portable
41+
- name: Upload Windows .exe installer
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: windows-exe-installer
45+
path: D:\a\Passy\build\Passy-Windows-Installer.exe

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ app.*.map.json
4646
/android/app/release
4747

4848
# Snap packaging files
49-
/snap/*
49+
/*.snap
5050

5151
# Development log files
5252
/log/*
@@ -55,3 +55,5 @@ app.*.map.json
5555
# Passy CLI
5656
lib/passy_cli/bin/passy_cli
5757

58+
.directory
59+
__Flutter_Output__

.gitmodules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[submodule "flutter"]
22
path = submodules/flutter
33
url = https://github.com/flutter/flutter.git
4+
ignore = dirty
5+
6+
[submodule "phc-winner-argon2"]
7+
path = submodules/phc-winner-argon2
8+
url = https://github.com/P-H-C/phc-winner-argon2.git

0 commit comments

Comments
 (0)