-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from MakinoharaShoko/dev
4.4.5
- Loading branch information
Showing
69 changed files
with
3,019 additions
and
2,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# WebGAL Electron Project | ||
Add electron support for WebGAL and WebGAL Origine. | ||
|
||
|
||
Add electron support for WebGAL and WebGAL Terre. | ||
|
||
### Optional: Add mirror of electron-builder | ||
|
||
``` | ||
export ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/ | ||
export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface Info { | ||
version: string, | ||
buildTime: string, | ||
} | ||
|
||
export const __INFO: Info = { | ||
version: '4.4.5', | ||
buildTime: '2023-09-23T05:28:26.398Z', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { __INFO } from "@/config/info"; | ||
import { useState, useEffect } from "react"; | ||
|
||
export interface latestRelease { | ||
version: string, | ||
releaseTime: string, | ||
} | ||
|
||
export function useRelease() { | ||
|
||
const webgalTerreLatestApiUrl = 'https://api.github.com/repos/MakinoharaShoko/WebGAL_Terre/releases/latest'; | ||
|
||
const [latestRelease, setLatestRelease] = useState<latestRelease>({ version: __INFO.version, releaseTime: __INFO.buildTime }); | ||
|
||
const getRelease = async () => { | ||
const response = await fetch(webgalTerreLatestApiUrl); | ||
const releasedata = await response.json(); | ||
return releasedata; | ||
}; | ||
|
||
useEffect(() => { | ||
try { | ||
getRelease().then( | ||
releasedata => setLatestRelease( | ||
{ | ||
version: releasedata.tag_name, | ||
releaseTime: releasedata.published_at, | ||
} | ||
) | ||
); | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
}, []); | ||
|
||
return latestRelease; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.