Skip to content

Commit 82938b9

Browse files
authored
Merge pull request #26 from GalaxyPay/dev
chore: release v.2.0.2
2 parents 8fc4993 + 5fce526 commit 82938b9

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ jobs:
139139
uses: ncipollo/release-action@v1
140140
with:
141141
allowUpdates: true
142-
tag: v2.0.1
142+
tag: v2.0.2
143143
artifacts: "Output/*"

FUNC.iss

Lines changed: 1 addition & 1 deletion
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 "2.0.1"
5+
#define MyAppVersion "2.0.2"
66
#define MyAppPublisher "Galaxy Pay, LLC"
77
#define MyAppPublisherURL "https://galaxy-pay.com"
88
#define MyPublishPath "publish"

FUNC/Controllers/GoalController.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public async Task<ActionResult<string>> GoalUpdate(Models.Release model)
7979
release = await client.Repository.Release.Get(workspaceName, repositoryName, model.Name);
8080
}
8181
url = release?.Assets.FirstOrDefault(a => a.Name == "node.tar.gz")?.BrowserDownloadUrl;
82+
if (url == null) return BadRequest();
83+
await Utils.ExecCmd($"curl -L -o {Utils.dataPath}/node.tar.gz {url}");
8284
}
8385
else if (IsLinux())
8486
{
@@ -91,11 +93,10 @@ public async Task<ActionResult<string>> GoalUpdate(Models.Release model)
9193
var latestInfo = await client.Repository.Release.GetLatest(workspaceName, repositoryName);
9294
url = latestInfo.Assets.FirstOrDefault(a => a.Name.Contains("node_stable_linux-amd64")
9395
&& a.Name.EndsWith("tar.gz"))?.BrowserDownloadUrl;
96+
if (url == null) return BadRequest();
97+
await Utils.ExecCmd($"wget -L -o {Utils.dataPath}/node.tar.gz {url}");
9498
}
9599

96-
if (url == null) return BadRequest();
97-
98-
await Utils.ExecCmd($"curl -L -o {Utils.dataPath}/node.tar.gz {url}");
99100
await Utils.ExecCmd($"tar -zxf {Utils.dataPath}/node.tar.gz -C {Utils.dataPath} bin");
100101
await Utils.ExecCmd($"rm {Utils.dataPath}/node.tar.gz");
101102

FUNC/Controllers/RetiController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public async Task<ActionResult> CreateRetiService(RetiCreate model)
4040
{
4141
var url = latest.Assets.FirstOrDefault(a => a.Name.Contains("linux-amd64.tar.gz"))?.BrowserDownloadUrl;
4242
if (url == null) return BadRequest();
43-
await Utils.ExecCmd($"curl -L -o {Utils.dataPath}/reti.tar.gz {url}");
43+
await Utils.ExecCmd($"wget -L -o {Utils.dataPath}/reti.tar.gz {url}");
4444
await Utils.ExecCmd($"tar -zxf {Utils.dataPath}/reti.tar.gz -C {Path.Combine(Utils.dataPath, "reti")}");
4545
}
4646
}
@@ -108,7 +108,7 @@ public async Task<ActionResult> UpdateReti()
108108
{
109109
var url = latest.Assets.FirstOrDefault(a => a.Name.Contains("linux-amd64.tar.gz"))?.BrowserDownloadUrl;
110110
if (url == null) return BadRequest();
111-
await Utils.ExecCmd($"curl -L -o {Utils.dataPath}/reti.tar.gz {url}");
111+
await Utils.ExecCmd($"wget -L -o {Utils.dataPath}/reti.tar.gz {url}");
112112
await Utils.ExecCmd($"tar -zxf {Utils.dataPath}/reti.tar.gz -C {Utils.dataPath} reti");
113113
}
114114

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ When updating a previous installation, the installer will recommend to let it au
2323
After downloading the `.deb` file to your machine, run
2424

2525
```sh
26-
sudo dpkg -i linux_func_<version>.deb
26+
sudo dpkg -i func_<version>_amd64.deb
2727
```
2828

2929
Then visit the locally hosted webpage at <http://localhost:3536> (for remote access see notes below)

create-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rm -r Output
22

3-
PKG=Output/func_2.0.1_amd64
3+
PKG=Output/func_2.0.2_amd64
44

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

deb/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: func
2-
Version: 2.0.1
2+
Version: 2.0.2
33
Section: base
44
Priority: optional
55
Architecture: amd64

webui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "func-webui",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"scripts": {
55
"dev": "vite",
66
"build": "vue-tsc --noEmit && vite build",

webui/src/components/Settings.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const show = computed({
7474
});
7575
7676
const goalVersion = ref<GoalVersion>();
77+
let init = false;
7778
7879
onBeforeMount(() => {
7980
getVersion();
@@ -84,7 +85,14 @@ async function getVersion() {
8485
const version = await FUNC.api.get("goal/version");
8586
goalVersion.value = version.data;
8687
if (goalVersion.value?.installed) store.ready = true;
87-
else updateLatest(true);
88+
else {
89+
if (!init) {
90+
init = true;
91+
updateLatest(true);
92+
} else {
93+
throw Error("Download Failed");
94+
}
95+
}
8896
8997
store.updateAvailable =
9098
goalVersion.value?.latest !== goalVersion.value?.installed;

0 commit comments

Comments
 (0)