Skip to content

Commit

Permalink
chore(release): 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ResetPower committed Jan 15, 2023
1 parent fed03e7 commit 33e621f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ jobs:
- name: Extract version
id: ver
uses: Saionaro/extract-package-version@v1.0.6
- name: Install Dependencies
run: npm install
- name: Run Post Release Script
run: node scripts/post-release.js
run: npx ts-node scripts/post-release.ts
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -124,3 +126,5 @@ jobs:
package/Epherome-${{ steps.ver.outputs.version }}.rpm.hash
package/Epherome-${{ steps.ver.outputs.version }}.snap
package/Epherome-${{ steps.ver.outputs.version }}.snap.hash
- name: Update Data on Official Site
run: curl -d '{"version":"${{ steps.ver.outputs.version }}", "token":"${{ secrets.SITE_ADMIN_TOKEN }}"}' -H 'Content-Type:application/json' -X PUT https://api.epherome.com/admin/version
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"cssnano": "^5.1.14",
"electron": "^22.0.2",
"electron-builder": "^23.6.0",
"eslint": "^8.31.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -91,7 +91,7 @@
"postcss": "^8.4.21",
"postcss-import": "^15.1.0",
"postcss-loader": "^7.0.2",
"prettier": "^2.8.2",
"prettier": "^2.8.3",
"react-refresh": "^0.14.0",
"tailwindcss": "^3.2.4",
"ts-loader": "^9.4.2",
Expand Down
4 changes: 2 additions & 2 deletions src/eph/renderer/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export interface EphUpdatableVersion {

export async function checkEphUpdate(): Promise<EphUpdatableVersion | null> {
try {
const resp = await got("https://epherome.com/version.txt");
const params: Omit<EphUpdatableVersion, "need"> = { name: resp.body };
const resp = await got("https://api.epherome.com/version");
const params: Omit<EphUpdatableVersion, "need"> = JSON.parse(resp.body);
const need = params.name !== ephVersion;
coreLogger.info(
`Fetched latest version: ${params.name}. Epherome ${
Expand Down
9 changes: 8 additions & 1 deletion src/eph/views/Marketplace.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { Center } from "@resetpower/rcs";
import { t } from "eph/intl";

export default function Marketplace(): JSX.Element {
return <div>Marketplace nyan~</div>;
return (
<div className="eph-h-full">
<Center className="text-shallow">{t("notSupportedYet")}</Center>
</div>
);
}

0 comments on commit 33e621f

Please sign in to comment.