Skip to content

Commit d78eaf0

Browse files
authored
Merge pull request #73 from GalaxyPay/dev
various minor fixes
2 parents 563faa0 + 53fb05c commit d78eaf0

File tree

12 files changed

+22
-24
lines changed

12 files changed

+22
-24
lines changed

Diff for: .github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,5 @@ jobs:
266266
uses: ncipollo/release-action@v1
267267
with:
268268
allowUpdates: true
269-
tag: v3.4.1
269+
tag: v3.4.2
270270
artifacts: "Output/*"

Diff for: FUNC.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "FUNC"
5-
#define MyAppVersion "3.4.1"
5+
#define MyAppVersion "3.4.2"
66
#define MyAppPublisher "Galaxy Pay, LLC"
77
#define MyAppPublisherURL "https://galaxy-pay.com"
88
#define MyPublishPath "publish"

Diff for: FUNC/Controllers/GoalController.cs

+5-11
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,11 @@ public async Task<ActionResult<string>> GoalUpdate(Models.Release model)
9595

9696
var client = new GitHubClient(new ProductHeaderValue(repositoryName));
9797
var latestInfo = await client.Repository.Release.GetLatest(workspaceName, repositoryName);
98+
bool isArm = RuntimeInformation.OSArchitecture == Architecture.Arm64;
9899

99-
if (RuntimeInformation.OSArchitecture == Architecture.Arm64)
100-
{
101-
url = latestInfo.Assets.FirstOrDefault(a => a.Name.Contains("node_stable_linux-arm64")
100+
url = latestInfo.Assets.FirstOrDefault(a =>
101+
a.Name.Contains($"node_stable_linux-{(isArm ? "arm" : "amd")}64")
102102
&& a.Name.EndsWith("tar.gz"))?.BrowserDownloadUrl;
103-
}
104-
else
105-
{
106-
url = latestInfo.Assets.FirstOrDefault(a => a.Name.Contains("node_stable_linux-amd64")
107-
&& a.Name.EndsWith("tar.gz"))?.BrowserDownloadUrl;
108-
}
109103
}
110104
else if (IsMacOS())
111105
{
@@ -117,8 +111,8 @@ public async Task<ActionResult<string>> GoalUpdate(Models.Release model)
117111
var client = new GitHubClient(new ProductHeaderValue(repositoryName));
118112
var latestInfo = await client.Repository.Release.GetLatest(workspaceName, repositoryName);
119113

120-
url = latestInfo.Assets.FirstOrDefault(a => a.Name.Contains("node_stable_darwin")
121-
&& a.Name.EndsWith("tar.gz"))?.BrowserDownloadUrl;
114+
url = latestInfo.Assets.FirstOrDefault(a => a.Name.Contains("node_stable_darwin-universal")
115+
&& a.Name.EndsWith("tar.gz"))?.BrowserDownloadUrl;
122116
}
123117

124118
string filePath = Path.Combine(Utils.appDataDir, "node.tar.gz");

Diff for: create-package-deb.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rm -r Output
22

3-
PKG=Output/func_3.4.1_linux-$1
3+
PKG=Output/func_3.4.2_linux-$1
44

55
mkdir -p $PKG/lib/systemd/system
66
mkdir -p $PKG/opt/func

Diff for: create-package-pkg.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pkgbuild --root publish \
55
--install-location /opt/func \
66
--scripts pkg/scripts \
77
--identifier func.app \
8-
Output/func_3.4.1_darwin-$1.pkg
8+
Output/func_3.4.2_darwin-$1.pkg

Diff for: deb/amd64/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.4.1
2+
Version: 3.4.2
33
Section: base
44
Priority: optional
55
Architecture: amd64

Diff for: deb/arm64/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 3.4.1
2+
Version: 3.4.2
33
Section: base
44
Priority: optional
55
Architecture: arm64

Diff for: webui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "func-webui",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",

Diff for: webui/src/components/AppBar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<v-btn
2727
color="primary"
2828
variant="tonal"
29-
:icon="store.showMachineName && xs"
29+
:icon="!!store.showMachineName && xs"
3030
class="mr-3"
3131
>
3232
<template v-if="!store.showMachineName || !xs">

Diff for: webui/src/components/Node.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ let restartAttempted = false;
352352
353353
async function getAlgodStatus() {
354354
try {
355-
if (nodeStatus.value?.serviceStatus === "Running") {
355+
if (nodeStatus.value?.serviceStatus === "Running" && !store.downloading) {
356356
algodStatus.value = await algodClient.value?.status().do();
357357
} else {
358358
algodStatus.value = undefined;
@@ -380,7 +380,7 @@ async function getAlgodStatus() {
380380
}
381381
} catch (err: any) {
382382
console.error(err);
383-
if (err.status !== 502)
383+
if (err.status !== 502 && !store.downloading)
384384
store.setSnackbar(err?.response?.data || err.message, "error");
385385
}
386386
}

Diff for: webui/src/components/Participation.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ const keys = ref<Participation[]>();
266266
const showGenerate = ref(false);
267267
const form = ref();
268268
const addr = ref<string>();
269-
const gen = ref<{ first?: bigint; last?: bigint }>({});
269+
const gen = ref<{ first?: bigint | string; last?: bigint | string }>({});
270270
const lastRound = ref<bigint>();
271271
const acctInfos = ref<modelsv2.Account[]>([]);
272272

Diff for: webui/src/stores/app.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ export const useAppStore = defineStore("app", {
1919
downloading: false,
2020
stoppingReti: false,
2121
goalVersion: undefined as GoalVersion | undefined,
22-
showNetworks: localStorage.getItem("showNetworks") === "true",
23-
showMachineName: localStorage.getItem("showMachineName") === "true",
22+
showNetworks: (localStorage.getItem("showNetworks") === "true") as
23+
| boolean
24+
| null,
25+
showMachineName: (localStorage.getItem("showMachineName") === "true") as
26+
| boolean
27+
| null,
2428
machineName: undefined as string | undefined,
2529
}),
2630
actions: {

0 commit comments

Comments
 (0)