Skip to content

Commit

Permalink
update build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Nov 9, 2023
1 parent a9ffbdf commit f37b630
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,33 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: setup node

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: install Rust stable

- name: Install Rust nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: install frontend dependencies

- name: Install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate artifact name
id: vars
shell: bash
run: |
commit=$(git describe --always --tags "refs/remotes/origin/${HEAD_REF}")"
artifact_name="open.mp-launcher-win-${commit}"
echo "artifact_name=${artifact_name}" >> $GITHUB_OUTPUT
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ steps.vars.outputs.artifact_name }}
path: src-tauri/target/release/omp-launcher.exe
if-no-files-found: error
1 change: 1 addition & 0 deletions src/containers/MainBody/ServerList/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const SearchBar = (props: IProps) => {
onPress={() => showFilterMenu(!filterMenu)}
>
<Icon
title={"Filter Servers"}
image={images.icons.filter}
size={16}
color={theme.textPlaceholder}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Unable to find "gta_sa.exe" in your given path.
}

const sampExists = await exists(path + "/samp.dll");
if (sampExists) {
if (!sampExists) {
showMessageBox({
title: "Can't find SA-MP!",
description: `Can not find SA-MP installation in this directory:
Expand Down

0 comments on commit f37b630

Please sign in to comment.