Esempio n. 1
0
    /// <inheritdoc/>
    internal override bool Analyze(DirectoryInfo baseDirectory, FileInfo file)
    {
        if (!base.Analyze(baseDirectory, file))
        {
            return(false);
        }
        Debug.Assert(RelativePath != null);

        if (!RelativePath.GetLeftPartAtLastOccurrence('/').EndsWith(@".app/Contents/MacOS"))
        {
            return(false);
        }

        // TODO: Parse MacOS plist
        Name         = file.Name[..^ file.Extension.Length];
Esempio n. 2
0
        /// <inheritdoc/>
        internal override bool Analyze(DirectoryInfo baseDirectory, FileInfo file)
        {
            if (!base.Analyze(baseDirectory, file))
            {
                return(false);
            }
            if (!RelativePath.GetLeftPartAtLastOccurrence('/').EndsWith(@".app/Contents/MacOS"))
            {
                return(false);
            }

            // TODO: Parse MacOS plist
            Name         = file.Name.Substring(0, file.Name.Length - file.Extension.Length);
            Architecture = new Architecture(OS.MacOSX, Cpu.All);
            return(true);
        }