Skip to content

Remove appimage related code #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
run: cargo install cargo-deb
- name: Install cargo-generate-rpm
run: cargo install cargo-generate-rpm
- name: Install cargo-appimage
run: |
cargo install cargo-appimage
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/bin/appimagetool
sudo chmod +x /usr/bin/appimagetool
- name: Test
run: cargo test --release
- name: Build .deb
Expand All @@ -41,15 +36,6 @@ jobs:
chmod +x ./.github/workflows/upload_asset.sh
./.github/workflows/upload_asset.sh \
"alt-art/commit" ./commit_${GITHUB_REF##*/}_x86_64.rpm $GITHUB_TOKEN
- name: Build .AppImage
run: cargo appimage --verbose
- name: Upload .AppImage
run: |
chmod +x ./.github/workflows/upload_asset.sh
cp ./*.AppImage ./commit_${GITHUB_REF##*/}_x86_64.AppImage
./.github/workflows/upload_asset.sh \
"alt-art/commit" ./commit_${GITHUB_REF##*/}_x86_64.AppImage $GITHUB_TOKEN

windows:
runs-on: windows-latest

Expand Down
6 changes: 0 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ struct Args {
}

fn main() -> Result<()> {
// Dumb hack to set the current/working directory (pwd) because appimage or cargo-appimage sucks
// https://github.com/AppImage/AppImageKit/issues/172
if let Ok(current_dir) = std::env::var("OWD") {
std::env::set_current_dir(current_dir)?;
}

check_staged_files()?;

let args = Args::parse();
Expand Down