Skip to content

Native Gui & Go FFI finalized

Compare
Choose a tag to compare
@razshare razshare released this 08 Mar 02:45
· 187 commits to master since this release

Changes

  • Adding some primitives for native gui support, read more here.

  • Goffi feature finalized and adding support for Goffi in phar mode, aka you can run composer prod:build and it will work.
    This is achieved by dumping the shared objects and header files in the current directory.

  • Adding a new function asPharFileName() which takes care of converting a given file name into a file name relative to the archive.

    <?php
    use function CatPaw\Core\asPharFileName;
    
    function main() {
        echo asPharFileName("./src/main.php").PHP_EOL;
    }

    When running with

    composer prod:start

    the program will print /home/raz/Desktop/starter/src/main.php.

    Whereas when running with

    composer prod:build &&\
    php app.phar

    the program will print phar:///home/raz/Desktop/starter/app.phar/src/main.php.