Skip to content

Commit

Permalink
Merge pull request #167 from KennyOliver/issue-154
Browse files Browse the repository at this point in the history
Issue 154
  • Loading branch information
KennyOliver authored Jan 3, 2025
2 parents 16b8480 + ef88399 commit b6d0573
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,14 @@ jobs:
- name: Make interpreter executable
run: chmod +x src/flavorlang-${{ matrix.os }}

# Create install.sh script
- name: Create install.sh
# Copy the appropriate install.sh script
- name: Copy install.sh
run: |
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
cat <<EOF > install.sh
#!/bin/bash

# Set execute permissions
chmod +x flavorlang-macos-latest

# Move to /usr/local/bin for easier access
sudo mv flavorlang-macos-latest /usr/local/bin/

# Run the executable
flavorlang-macos-latest --about
EOF
cp scripts/install_macos.sh install.sh
elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
cat <<EOF > install.sh
#!/bin/bash

# Set execute permissions
chmod +x flavorlang-ubuntu-latest

# Move to /usr/local/bin for easier access
sudo mv flavorlang-ubuntu-latest /usr/local/bin/

# Run the executable
flavorlang-ubuntu-latest --about
EOF
cp scripts/install_ubuntu.sh install.sh
fi
chmod +x install.sh
# Package interpreter, VSIX, and install.sh into a ZIP
- name: Package release assets
Expand Down
10 changes: 10 additions & 0 deletions scripts/install_macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Set execute permissions
chmod +x flavorlang-macos-latest

# Move to /usr/local/bin for easier access
sudo mv flavorlang-macos-latest /usr/local/bin/

# Run the executable
flavorlang-macos-latest --about
10 changes: 10 additions & 0 deletions scripts/install_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Set execute permissions
chmod +x flavorlang-ubuntu-latest

# Move to /usr/local/bin for easier access
sudo mv flavorlang-ubuntu-latest /usr/local/bin/

# Run the executable
flavorlang-ubuntu-latest --about

0 comments on commit b6d0573

Please sign in to comment.