diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eb3b21..6024123 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,45 +90,6 @@ jobs: psx_mc_cli/psx-mc-cli-v*-standalone.zip psx_mc_cli/psx_mc_cli.com -# build-windows: -# name: Build psx-mc-cli-windows-exe -# runs-on: windows-latest -# steps: -# - name: Fetch repo and submodules -# uses: actions/checkout@v3 -# with: -# path: 'psx_mc_cli' -# submodules: true -# - name: Install Perl -# uses: shogo82148/actions-setup-perl@v1 -# with: -# perl-version: '5.32' -# distribution: strawberry -# working-directory: psx_mc_cli -# install-modules-with: cpanm -# - name: Test in-tree -# run: | -# cd psx_mc_cli/PlayStation-MemoryCard -# prove -I../gifenc-pl/lib -lv t -# - name: Build windows exe release -# run: | -# cd psx_mc_cli -# perl buildpar.pl -# $version = perl -IPlayStation-MemoryCard/lib -MPlayStation::MemoryCard -e 'print $PlayStation::MemoryCard::VERSION' -# 7z a -tzip psx-mc-cli-$version-windows-exe.zip psx-mc-cli-$version-windows-exe -# - name: Upload build artifacts -# uses: actions/upload-artifact@v3 -# with: -# name: psx_mc_cli-windows-exe -# if-no-files-found: error -# path: psx_mc_cli/psx-mc-cli-v*-windows-exe.zip -# - name: Archive CPAN logs -# if: ${{ failure() }} -# uses: actions/upload-artifact@v3 -# with: -# name: cpan_log -# path: C:\Users\RUNNER*\.cpanm\work\*\build.log - test-perl-release: needs: [ build-linux ] strategy: diff --git a/PlayStation-MemoryCard/Changes b/PlayStation-MemoryCard/Changes index 31d18a5..c23a414 100644 --- a/PlayStation-MemoryCard/Changes +++ b/PlayStation-MemoryCard/Changes @@ -1,10 +1,10 @@ Revision history for PlayStation-MemoryCard -v0.2.1 2022-10-XX - Packaging changes, shouldn't affect cli operations. Make - scripts that don't exit return true, for operation under do. - Binaries are now produced with Perl::Dist::APPerl instead of - PAR::Packer to make binary cross-compatible with more - operating systems than Windows. +v0.2.1 2022-11-13 + Packaging changes, shouldn't affect cli operations. + - all scripts now return true for operation under do + - use Perl::Dist::APPerl instead of PAR::Packer to build a + cross-platform binary that is compatible with several + unix-like operating systems in addition to Windows. v0.2.0 2022-07-19 First packaged version, released on an unsuspecting world. diff --git a/buildpar.pl b/buildpar.pl deleted file mode 100644 index 40104ed..0000000 --- a/buildpar.pl +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/perl - -use strict; use warnings; -use feature 'say'; -use FindBin; -use File::Copy qw(copy); -use File::Path qw(make_path); -use lib "$FindBin::Bin/PlayStation-MemoryCard/lib"; -use PlayStation::MemoryCard; - -my $reldir = "$FindBin::Bin/psx-mc-cli-$PlayStation::MemoryCard::VERSION-windows-exe"; -my $relbindir = "$reldir/bin"; -make_path($reldir, $relbindir); -my @tocopy = ("README.md", "LICENSE", "PlayStation-MemoryCard/Changes"); -foreach my $file (@tocopy) { - copy("$FindBin::Bin/$file", $reldir); -} -my $psxmcdir = "$FindBin::Bin/PlayStation-MemoryCard"; -my $inbindir = "$psxmcdir/script"; -opendir(my $dh, $inbindir) || die "Can't open $inbindir: $!"; -while (readdir $dh) { - next if($_ =~ /^\.{1,2}$/); - - my @cmd = ('pp', "--lib=$psxmcdir/lib", '-M', 'PlayStation::MemoryCard', - "--lib=$FindBin::Bin/gifenc-pl/lib", '-M', 'Image::GIF::Encoder::PP'); - push(@cmd, '-u') if ("$]" < 5.031006); - push @cmd, ('-B', '-o', "$relbindir/$_.exe", "$inbindir/$_"); - system(@cmd) == 0 or die("Failed to package"); -} -closedir $dh; diff --git a/cpanfile b/cpanfile deleted file mode 100644 index bdc8a44..0000000 --- a/cpanfile +++ /dev/null @@ -1 +0,0 @@ -requires 'PAR::Packer'; \ No newline at end of file