Skip to content

Commit 9c69f2f

Browse files
authored
Merge branch 'master' into tracklist-update
2 parents 09bd373 + b5658ce commit 9c69f2f

7 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/build-and-release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ jobs:
3939
node-version: v18.19.0
4040
- name: Checkout code
4141
uses: actions/checkout@v2
42-
- name: Install builder dependencies
42+
- name: Fix apt and install builder dependencies
4343
shell: bash
4444
run: |
45+
sudo rm /var/lib/apt/lists/* || true
46+
sudo apt update
47+
sudo apt install flatpak -y
48+
sudo apt install flatpak-builder -y
4549
sudo apt install elfutils -y
50+
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
4651
git config --global --add protocol.file.allow always
4752
- name: Build the app (Linux)
4853
shell: bash
@@ -54,7 +59,7 @@ jobs:
5459
shell: bash
5560
run: |
5661
cd release
57-
find . -type f \( -name "*.AppImage" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T -
62+
find . -type f \( -name "*.AppImage" -o -name "*.flatpak" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T -
5863
- uses: actions/upload-artifact@v4
5964
with:
6065
name: bridge-linux

.github/workflows/build-on-pr.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ jobs:
2727
node-version: v18.19.0
2828
- name: Checkout code
2929
uses: actions/checkout@v2
30-
- name: Install builder dependencies
30+
- name: Fix apt and install builder dependencies
3131
shell: bash
3232
run: |
33+
sudo rm /var/lib/apt/lists/* || true
34+
sudo apt update
35+
sudo apt install flatpak -y
36+
sudo apt install flatpak-builder -y
3337
sudo apt install elfutils -y
34-
git config --global --add protocol.file.allow always
38+
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
3539
- name: Build the app
3640
shell: bash
3741
run: |

electron-builder.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"linux": {
3737
"compression": "maximum",
3838
"target": [
39-
"AppImage"
39+
"AppImage",
40+
"flatpak"
4041
],
4142
"category": "utility"
4243
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bridge",
3-
"version": "3.4.4",
3+
"version": "3.4.6",
44
"description": "A rhythm game chart searching and downloading tool.",
55
"homepage": "https://github.com/Geomitron/Bridge",
66
"license": "GPL-3.0",

src-angular/app/core/services/search.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SearchService {
7070
}
7171
})
7272

73-
this.drumsReviewed = new FormControl<boolean>((localStorage.getItem('drumsReviewed') ?? 'true') === 'true', { nonNullable: true })
73+
this.drumsReviewed = new FormControl<boolean>((localStorage.getItem('drumsReviewed') ?? 'false') === 'true', { nonNullable: true })
7474
this.drumsReviewed.valueChanges.subscribe(drumsReviewed => {
7575
localStorage.setItem('drumsReviewed', `${drumsReviewed}`)
7676
if (this.songsResponse?.page) {

src-electron/ipc/issue-scan/ExcelBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ export function columnNumberToLetter(column: number) {
171171
}
172172

173173
/**
174-
* @returns an string representation of `ms` that looks like HH:MM:SS.mm
174+
* @returns a string representation of `ms` that looks like HH:MM:SS.mm
175175
*/
176176
export function msToExactTime(ms: number) {
177177
const seconds = _.round((ms / 1000) % 60, 2)
178178
const minutes = Math.floor((ms / 1000 / 60) % 60)
179-
const hours = Math.floor((ms / 1000 / 60 / 60) % 24)
179+
const hours = Math.floor(ms / 1000 / 60 / 60)
180180
return `${hours ? `${hours}:` : ''}${_.padStart(
181181
minutes + '',
182182
2,

src-shared/UtilFunctions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function instrumentToDiff(instrument: Instrument | 'vocals') {
140140
export function msToRoughTime(ms: number) {
141141
const seconds = _.floor((ms / 1000) % 60)
142142
const minutes = _.floor((ms / 1000 / 60) % 60)
143-
const hours = _.floor((ms / 1000 / 60 / 60) % 24)
143+
const hours = _.floor(ms / 1000 / 60 / 60)
144144
return `${hours ? `${hours}:` : ''}${minutes}:${_.padStart(String(seconds), 2, '0')}`
145145
}
146146

0 commit comments

Comments
 (0)